Re: recursive locking in linux?

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

 



On Sat, 2007-03-17 at 09:21 -0400, Robert P. J. Day wrote:
>   does linux support recursive locking with any of its synchronization
> primitives?  love's book on kernel development is adamant that linux
> has no recursive locks, but i've seen other documentation that seems
> to suggest that it exists, although i'm not sure where.

the big kernel lock (BKL) allows recursion.
in theory rw spinlocks can allow recursion in linux.

it's really bad coding practice though...

(all other primitives are not recursive)
-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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