Date: Thu, 15 Dec 2005 12:47:26 -0500 From: John Baldwin <jhb@freebsd.org> To: new-bus@freebsd.org Cc: Warner Losh <imp@freebsd.org> Subject: DRIVER_UNIDENTIFY Message-ID: <200512151247.27614.jhb@freebsd.org>
next in thread | raw e-mail | index | archive | help
How about creating a new driver_if.m entry point that is the complement to DRIVER_IDENTIFY. I would call it DRIVER_UNIDENTIFY() and would change bus_generic_detach() to call it on each driver similar to how bus_generic_probe() currently calls DRIVER_IDENTIFY() for each driver. This would allow drivers that create devices in DRIVER_IDENTIFY() have a place to remove the device when they are unloaded. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512151247.27614.jhb>