Re: ppbus probe problem

"M. Warner Losh" <[email protected]> Thu, 18 Mar 2004 22:11:10 +0800 (CST)
Newsgroups gmane.os.freebsd.devel.new-bus
Message-ID <[email protected]>
In message: <[email protected]>
            Doug Rabson <[email protected]> writes:
: On Thursday 18 March 2004 10:05, Guido van Rooij wrote:
: > On Thu, Mar 18, 2004 at 09:13:33AM +0000, Doug Rabson wrote:
: > > I would use something like:
: > >
: > > static void
: > > vpo_identify(driver_t *driver, device_t parent)
: > > {
: > > 	device_t dev;
: > >
: > > 	dev = device_find_child(parent, "vpo", 0);
: > > 	if (!dev)
: > > 		BUS_ADD_CHILD(parent, 0, "vpo", -1);
: > > }
: >
: > So I'll update all of the ppbus drivers that way. Okay?
: 
: I think so. Warner, do you have any objections?

No.

: In an ideal world, there should be some kind of BUS_UNIDENTIFY method 
: which a driver could use to delete the devices it created in 
: BUS_IDENTIFY.

Or the bus would have a driver deleted routine that got called and it
would remove all instances of the devclass attached to it.

Warner
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus
To unsubscribe, send any mail to "[email protected]"