Subject: Re: Interrupt, interrupt threads, continuations, and kernel lwps
To: Andrew Doran <ad@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 06/21/2007 11:07:05
On Wed, Jun 20, 2007 at 10:54:14PM +0100, Andrew Doran wrote:
> > Do you mean 'run the callout function' ?
> > Isn't that done from the soft timer interrupt anyway?
> 
> The callout will run in thread context from the softclock interrupt, yup.
> What I mean is that from a hardware ISR that does not have thread context
> (like at IPL_NET) it wouldn't be possible to call callout_reset() or similar
> functions. That would need to be deferred to a soft interrupt or a kernel
> thread.

Do you have a way to do this easily ? A lot of drivers do schedule or
stop callouts from their interrupt function.

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--