Re: Mutual Exclusion in Kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rakesh Jagota wrote:
Hello All,

I have defined one array of structures in the kernel which can be seen by
all the modules. Now I would like to have mutual exclusion , that is if any
module is accessing the array ,no other module should not access the same
array, since it is a global array.
why don't you use spin locks/ semaphores in the access functions to make it mutually exclusive?

HTH
om.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux