Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2002 11:26:35 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        hackers@freebsd.org
Subject:   RE: Fast interrupts
Message-ID:  <XFMail.20020826112635.jhb@FreeBSD.org>
In-Reply-To: <20020825.232759.27153304.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 26-Aug-2002 M. Warner Losh wrote:
> can you call wakeup(9) from a fast interrupt handler?  I couldn't find
> the specific answer from the man page:
> 
>      All processes
>      sleeping on a single ident are woken up later by wakeup, often called
>      from inside an interrupt routine, to indicate that the resource the pro-
>      cess was blocking on is available now.
> 
> The only reason I ask is because sio seems to go out of its way to
> schedule a soft interrupt to deal with waking up processes, which then
> calls wakeup...

Since wakeup only needs a spin lock, it is probably ok.  You just can't call
anything that would sleep (in any interrupt handler) or block on a non-spin
mutex.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020826112635.jhb>