From owner-freebsd-hackers Thu May 9 15:56:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 3281437B408 for ; Thu, 9 May 2002 15:56:25 -0700 (PDT) Received: from pool0102.cvx40-bradley.dialup.earthlink.net ([216.244.42.102] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 175wpi-0001Id-00; Thu, 09 May 2002 15:56:23 -0700 Message-ID: <3CDAFE72.E1EDE979@mindspring.com> Date: Thu, 09 May 2002 15:55:46 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Josef Karthauser Cc: hackers@freebsd.org Subject: Re: Soft interrupts References: <20020509223740.GC8889@genius.tao.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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