Subject: Re: Mutex question
To: Matthew Orgass <firstname.lastname@example.org>
From: Steven M. Bellovin <email@example.com>
Date: 03/16/2006 11:49:47
On Thu, 16 Mar 2006 09:16:57 -0500 (EST), Matthew Orgass
> On 2006-03-16 firstname.lastname@example.org 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
--Steven M. Bellovin, http://www.cs.columbia.edu/~smb