From 938a4e5c0c9423162915c9231c0b17dab2463039 Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Sat, 4 Aug 2001 18:02:47 +0000 Subject: [PATCH] Export the head structure for the device statistics STAILQ in sys/devicestat.h, so that the queue can be walked in crashdumps using libkvm. --- sys/kern/subr_devstat.c | 2 +- sys/sys/devicestat.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 3c15b433a089..8831a2f8fcc0 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -41,7 +41,7 @@ static long devstat_generation; static int devstat_version = DEVSTAT_VERSION; static int devstat_current_devnumber; -static STAILQ_HEAD(devstatlist, devstat) device_statq; +static struct devstatlist device_statq; /* * Take a malloced and zeroed devstat structure given to us, fill it in diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h index b3e7f7f54e0a..b7becea0fa8b 100644 --- a/sys/sys/devicestat.h +++ b/sys/sys/devicestat.h @@ -205,6 +205,8 @@ struct devstat { devstat_priority priority; /* Controls list pos. */ }; +STAILQ_HEAD(devstatlist, devstat); + #ifdef _KERNEL struct bio;