Subject: Re: Is one allowed to call tsleep from within an interrupt context?
To: None <lennart@augustsson.net>
From: Wolfgang Solfrank <ws@tools.de>
List: tech-kern
Date: 09/13/1999 15:51:05
Hi,
> So I guess I can call tsleep() from an interrupt context then, I thought
> testing for curproc was enough to determine if it was process or
> interrupt context.
> What's the correct way to figure out if it is an interrupt context?
Hmm, AFAICT there is no MI way to tell whether you are in an interrupt
context or not :-(. To handle this in a MI way, you probably need to
take note of this somehow in your interrupt handler. Note that interrupt
handler in this context includes any routine handed to the timeout
mechanism.
Ciao,
Wolfgang
--
ws@TooLs.DE (Wolfgang Solfrank, TooLs GmbH) +49-228-985800