summaryrefslogtreecommitdiffstats
path: root/sys/kern/makedevops.pl
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-03-29 08:54:20 +0000
committerdfr <dfr@FreeBSD.org>1999-03-29 08:54:20 +0000
commite92e9c75bfcb1d32e9a6da832e0288caef0abd4a (patch)
treed56b9573f9c1710544ea3b0ac9249a916228c0ed /sys/kern/makedevops.pl
parent21b8cdbbc44555e6e72a62f039cb74083fa94385 (diff)
downloadFreeBSD-src-e92e9c75bfcb1d32e9a6da832e0288caef0abd4a.zip
FreeBSD-src-e92e9c75bfcb1d32e9a6da832e0288caef0abd4a.tar.gz
Add some useful functions to the device framework:
* bus_setup_intr() as a wrapper for BUS_SETUP_INTR * bus_teardown_intr() as a wrapper for BUS_TEARDOWN_INTR * device_get_nameunit() which returns e.g. "foo0" for name "foo" and unit 0. * device_set_desc_copy() malloc a copy of the description string. * device_quiet(), device_is_quiet(), device_verbose() suppress probe message. Add one method to the BUS interface, BUS_CHILD_DETACHED() which is called after the child has been detached to allow the bus to clean up any memory which it allocated on behalf of the child. I also fixed a bug which corrupted the list of drivers in a devclass if a driver was added to more than one devclass.
Diffstat (limited to 'sys/kern/makedevops.pl')
-rw-r--r--sys/kern/makedevops.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/makedevops.pl b/sys/kern/makedevops.pl
index a542dcd..1c434d5 100644
--- a/sys/kern/makedevops.pl
+++ b/sys/kern/makedevops.pl
@@ -153,6 +153,7 @@ foreach $src ( @filenames ) {
print CFILE "\n";
print CFILE "#include <sys/param.h>\n";
print CFILE "#include <sys/queue.h>\n";
+ print CFILE "#include <sys/sysctl.h>\n";
print CFILE "#include <sys/bus_private.h>\n";
}
OpenPOWER on IntegriCloud