From owner-cvs-all Mon Mar 29 0:54:39 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2436814BD2; Mon, 29 Mar 1999 00:54:37 -0800 (PST) (envelope-from dfr@FreeBSD.org) Received: (from dfr@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id AAA38490; Mon, 29 Mar 1999 00:54:20 -0800 (PST) (envelope-from dfr@FreeBSD.org) Message-Id: <199903290854.AAA38490@freefall.freebsd.org> From: Doug Rabson Date: Mon, 29 Mar 1999 00:54:20 -0800 (PST) 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 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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