LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   implement a new locking mechanism (https://www.linuxquestions.org/questions/linux-newbie-8/implement-a-new-locking-mechanism-4175497078/)

kenshuri 03-05-2014 01:16 AM

implement a new locking mechanism
 
how can i implement a new locking mechanism(something like mutex and semaphore) in linux. Do i have to implement it as a module or do I have to modify the kernel. Sorry I am a complete newbie.

astrogeek 03-05-2014 05:49 PM

Kind of vague... To lock what, in what context, for what purpose and to what end?

kenshuri 03-06-2014 03:49 AM

To lock any data that is shared among the processes. Or to make it simple ..how the semaphore is implemented.and if i want to modify the semaphore which kernel data structure should i work with.


All times are GMT -5. The time now is 12:34 AM.