Date: Thu, 09 May 2002 15:55:46 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Josef Karthauser <joe@tao.org.uk> Cc: hackers@freebsd.org Subject: Re: Soft interrupts Message-ID: <3CDAFE72.E1EDE979@mindspring.com> References: <20020509223740.GC8889@genius.tao.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Josef Karthauser wrote:
> Do we have soft interrupts?
Yes. The easiest one to use is NETISR. Software interrupts
are called from reenabling hardware interrupts. See _doreti
in /sys/i386/isa/ipl.s
static void
ipintr(void)
{
...
}
void
ip_init()
{
...
register_netisr(NETISR_IP, ipintr);
}
See net/netisr.h for a place to pick a number that isn't used (i.e. do
not step on NETISR_IP or some other place it's called).
Note that the index is limited to 0..31, since there is a hard coded
limit of 32 entries on the netisrs array.
It's almost even appropriate to treat USB as a network stack...
-- Terry
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?3CDAFE72.E1EDE979>
