Date: Mon, 29 Mar 1999 00:54:20 -0800 (PST) From: Doug Rabson <dfr@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys bus.h bus_private.h src/sys/kern bus_if.m makedevops.pl subr_bus.c Message-ID: <199903290854.AAA38490@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dfr 1999/03/29 00:54:20 PST
Modified files:
sys/sys bus.h bus_private.h
sys/kern bus_if.m makedevops.pl subr_bus.c
Log:
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.
Revision Changes Path
1.10 +10 -3 src/sys/sys/bus.h
1.5 +19 -3 src/sys/sys/bus_private.h
1.6 +10 -1 src/sys/kern/bus_if.m
1.4 +1 -0 src/sys/kern/makedevops.pl
1.16 +303 -42 src/sys/kern/subr_bus.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903290854.AAA38490>
