Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2002 17:16:49 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Josef Karthauser <joe@tao.org.uk>
Cc:        hackers@freebsd.org
Subject:   Re: Soft interrupts
Message-ID:  <20020510171511.B27718-100000@herring.nlsystems.com>
In-Reply-To: <20020509223740.GC8889@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020510171511.B27718-100000>