From owner-freebsd-hackers Fri May 10 9:17: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id ACC1937B415 for ; Fri, 10 May 2002 09:16:51 -0700 (PDT) Received: from mailgate.nlsystems.com ([62.49.251.130] helo=herring.nlsystems.com) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 176D4c-000H0R-0U; Fri, 10 May 2002 17:16:50 +0100 Received: from herring (herring [10.0.0.2]) by herring.nlsystems.com (8.12.3/8.11.2) with ESMTP id g4AGGnvO027746; Fri, 10 May 2002 17:16:49 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Fri, 10 May 2002 17:16:49 +0100 (BST) From: Doug Rabson To: Josef Karthauser Cc: hackers@freebsd.org Subject: Re: Soft interrupts In-Reply-To: <20020509223740.GC8889@genius.tao.org.uk> Message-ID: <20020510171511.B27718-100000@herring.nlsystems.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Thu, 9 May 2002, Josef Karthauser wrote: > Do we have soft interrupts? > > Here's a bit of code from the NetBSD usb stack, and I'm trying to work > out what it would be in FreeBSDland. > > sc->sc_bus->soft = softintr_establish(IPL_SOFTNET, > sc->sc_bus->methods->soft_intr, sc->sc_bus); > if (sc->sc_bus->soft == NULL) { > printf("%s: can't register softintr\n", USBDEVNAME(sc->sc_dev)); > sc->sc_dying = 1; > USB_ATTACH_ERROR_RETURN; > } > > Can someone point me to a man page please? Try using taskqueue.9. You don't need to create a new queue - just use the system queue 'taskqueue_swi' which executes tasks on a SWI thread (on current). -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message