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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to