From owner-freebsd-hackers Mon Aug 26 8:26:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EBA237B400 for ; Mon, 26 Aug 2002 08:26:36 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4D8B43E6E for ; Mon, 26 Aug 2002 08:26:35 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30221 invoked from network); 26 Aug 2002 15:26:34 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 26 Aug 2002 15:26:34 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g7QFQVBQ035631; Mon, 26 Aug 2002 11:26:32 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020825.232759.27153304.imp@bsdimp.com> Date: Mon, 26 Aug 2002 11:26:35 -0400 (EDT) From: John Baldwin To: "M. Warner Losh" Subject: RE: Fast interrupts Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< 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