From owner-freebsd-questions Fri Sep 1 8:10:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom2-109.telepath.com [216.14.2.109]) by hub.freebsd.org (Postfix) with SMTP id 4E17837B422 for ; Fri, 1 Sep 2000 08:10:22 -0700 (PDT) Received: (qmail 17420 invoked by uid 100); 1 Sep 2000 15:09:44 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14767.50872.507238.613317@guru.mired.org> Date: Fri, 1 Sep 2000 10:09:44 -0500 (CDT) To: Sean-Paul Rees Cc: questions@freebsd.org Subject: Re: determining device interrupts In-Reply-To: <15661602@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sean-Paul Rees writes: > Quick question, > > I'd like to see which devices are using which interrupts, in a quick n' > simple table, something like: > > dc0 10 > xl0 11 > ahc0 14 That nasty part is that the dmesg output isn't consistent. YOu need Change the "" to whatever it takes to get a tab through your shell/editor/etc, or any other separator you want to use (except space). I also put them in IRQ order. $ dmesg | grep -E '(:|at).*irq' | sed -e 's/:* .*irq //' -e 's/ .*//' | sort -n +1