Use either semaphore or spin locks for mutual exclusion Gaurav -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Rakesh Jagota Sent: Wednesday, October 06, 2004 9:03 AM To: kernelnewbies Subject: Mutual Exclusion in Kernel 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. Thanks in advance Regards Rakesh -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/