*BSD News Article 85482


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!nntp.portal.ca!news.bc.net!arclight.uoregon.edu!mr.net!news-feed.inet.tele.dk!stdio!heathers!risner
From: risner@heathers.stdio.com (James Risner)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: [HELP] utility for checking IRQs in use?
Date: 22 Dec 1996 16:17:10 GMT
Organization: Open World
Lines: 22
Message-ID: <59jmu6$efe@stargate.stdio.com>
References: <1996Dec19.152405.90843@cc.usu.edu>
NNTP-Posting-Host: heathers.stdio.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:32983

xiaonian (slhq5@cc.usu.edu) wrote:
: Hi, there:

: I know that SCO UNIX has a utility called 'vectorsinuse' which
: displays all the IRQs in use. My PC runs FreeBSD 2.0.5 (from
: Walnum Creek). So I am wondering that if my FreeBSD has a 
: similar thing?

sure here ya go:
#!/bin/sh
dmesg | less | grep -i irq | sed -e 's/^.*[iI][rR][qQ] //' | awk '{print $1}' | sort | uniq

That will show all IRQ's in use exactly the same way SCO does it.
(If a driver attached to a device; vectorsinuse displays what IRQ is in use)

Neither will catch undefined devices.
There is no reliable way to determine what hardware is using an IRQ in
software.  There are plug in cards to do this but that is HARDWARE and
SOFTWARE to do the work.


Risner