Re: recursive locking in linux?

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

 



On Mon, 19 Mar 2007, Momchil Velikov wrote:

> Robert P. J. Day wrote:
> > i thought you couldn't use semaphores from interrupt context, anyway.
> > can someone clarify this?  thanks.
>
> You could increment a semaphore in interrupt context.  You can't
> decrement it, as it potentially blocks.

right, i should have been more careful in my phrasing.  in general,
you can't do anything in interrupt context that might cause a "sleep,"
since sleeping can be done only in process context.  is that a fairly
accurate way to put it?

rday

p.s.  i removed arjan's name from the CC list, i suspect he doesn't
need to get two copies of this thread.  :-)
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
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