From owner-freebsd-hackers Mon Dec 11 02:27:18 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA20545 for hackers-outgoing; Mon, 11 Dec 1995 02:27:18 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA20532 for ; Mon, 11 Dec 1995 02:27:06 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id VAA03842; Mon, 11 Dec 1995 21:23:57 +1100 Date: Mon, 11 Dec 1995 21:23:57 +1100 From: Bruce Evans Message-Id: <199512111023.VAA03842@godzilla.zeta.org.au> To: cimaxp1!jb@werple.net.au, hackers@freebsd.org Subject: Re: Handling hardware interrupts in lkm device drivers. Cc: jb@cimlogic.com.au Sender: owner-hackers@freebsd.org Precedence: bulk >I was thinking about trying to register_intr() my interrupt function, but I >see that register_intr() wants to know a device_id and I don't have one >to give it. Am I barking up the wrong tree? The device id is only used to decide where to count interrupts. Other id'less (pci) drivers pretend that they have an id of 0 so that their interrupts are (msi)counted as clock interrupts. Bruce