summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mib.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-05-05 09:59:14 +0000
committerphk <phk@FreeBSD.org>2000-05-05 09:59:14 +0000
commit36c3965ff904c2677211575be5bfa7d3afe80d19 (patch)
treedc425a5c4e6ca4b753b2fc7c6c3057c50cbbeb92 /sys/kern/kern_mib.c
parent5ea491d29e5d066f5e0a88aeb886dbe04c7ada92 (diff)
downloadFreeBSD-src-36c3965ff904c2677211575be5bfa7d3afe80d19.zip
FreeBSD-src-36c3965ff904c2677211575be5bfa7d3afe80d19.tar.gz
Separate the struct bio related stuff out of <sys/buf.h> into
<sys/bio.h>. <sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall not be made a nested include according to bdes teachings on the subject of nested includes. Diskdrivers and similar stuff below specfs::strategy() should no longer need to include <sys/buf.> unless they need caching of data. Still a few bogus uses of struct buf to track down. Repocopy by: peter
Diffstat (limited to 'sys/kern/kern_mib.c')
-rw-r--r--sys/kern/kern_mib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c
index 375b500..35c70fb 100644
--- a/sys/kern/kern_mib.c
+++ b/sys/kern/kern_mib.c
@@ -247,6 +247,7 @@ SYSCTL_INT(_debug_sizeof, OID_AUTO, proc, CTLFLAG_RD,
SYSCTL_INT(_debug_sizeof, OID_AUTO, specinfo, CTLFLAG_RD,
0, sizeof(struct specinfo), "sizeof(struct specinfo)");
+#include <sys/bio.h>
#include <sys/buf.h>
SYSCTL_INT(_debug_sizeof, OID_AUTO, bio, CTLFLAG_RD,
0, sizeof(struct bio), "sizeof(struct bio)");
OpenPOWER on IntegriCloud