summaryrefslogtreecommitdiffstats
path: root/sys/sys/interrupt.h
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-06-01 13:23:28 +0000
committertmm <tmm@FreeBSD.org>2001-06-01 13:23:28 +0000
commit9ce8a6234736b0446ecc22b1092f693c658a25be (patch)
treedfa10a376890935609a85e9cf3ff54855c2ff66c /sys/sys/interrupt.h
parent831472121170bbeebce019cd7be85fb15d34bd31 (diff)
downloadFreeBSD-src-9ce8a6234736b0446ecc22b1092f693c658a25be.zip
FreeBSD-src-9ce8a6234736b0446ecc22b1092f693c658a25be.tar.gz
Clean up the code exporting interrupt statistics via sysctl a bit:
- move the sysctl code to kern_intr.c - do not use INTRCNT_COUNT, but rather eintrcnt - intrcnt to determine the length of the intrcnt array - move the declarations of intrnames, eintrnames, intrcnt and eintrcnt from machine-dependent include files to sys/interrupt.h - remove the hw.nintr sysctl, it is not needed. - fix various style bugs Requested by: bde Reviewed by: bde (some time ago)
Diffstat (limited to 'sys/sys/interrupt.h')
-rw-r--r--sys/sys/interrupt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/interrupt.h b/sys/sys/interrupt.h
index 4b444de..fefa2a7 100644
--- a/sys/sys/interrupt.h
+++ b/sys/sys/interrupt.h
@@ -105,6 +105,12 @@ extern void *net_ih;
extern void *softclock_ih;
extern void *vm_ih;
+/* Counts and names for statistics (defined in MD code). */
+extern u_long eintrcnt[]; /* end of intrcnt[] */
+extern char eintrnames[]; /* end of intrnames[] */
+extern u_long intrcnt[]; /* counts for for each device and stray */
+extern char intrnames[]; /* string table containing device names */
+
int ithread_create __P((struct ithd **ithread, int vector, int flags,
void (*disable)(int), void (*enable)(int), const char *fmt, ...))
__printflike(6, 7);
OpenPOWER on IntegriCloud