Subject: Re: Mutex question
To: Matthew Orgass <darkstar@city-net.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-kern
Date: 03/16/2006 11:49:47
On Thu, 16 Mar 2006 09:16:57 -0500 (EST), Matthew Orgass
<darkstar@city-net.com> wrote:

> On 2006-03-16 hselasky@c2i.net wrote:
> 
> > If I want to aquire a mutex from:
> >
> > 1) Interrupt handler
> > 2) Callout (timeout)
> >
> > How do I do that? Do I have to use a soft interrupt handler?
> 
>   No, you just need to use the right spl calls to block the hard interrupt
> in the callout (placed outside the lock).
> 

The question is this: what do you do in the interrupt handler or
timeout if you can't get the mutex?  You can't sleep; there's no
process context.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb