Can kldload trigger pci bus rescan?
M. Warner Losh
imp at bsdimp.com
Thu Apr 27 18:06:34 UTC 2006
In message: <5f67a8c40604270908j54fb2c8bh5f0732d857155142 at mail.gmail.com>
"Zaphod Beeblebrox" <zbeeble at gmail.com> writes:
: It would be cool if pccard and usb also reprobed when kldload ran. The usb
: case is slightly more complex --- having (say) uscanner claim something that
: ugen is currently claiming.
PC Card has done so for years, OLDCARD and NEWCARD. In fact, you can
even load and unload the bridge driver (cbb today, pcic in yesteryear)
and the pccard bus driver. pccard works very hard to make sure that
these things work.
usb does also, but not in a manner that's useful. It does work with
usb for simple devices when ugen isn't loaded into the kernel.
However, the brain dead way that usb dollops out subdevices makes
fixing it to work like rest of the system difficult... The port from
NetBSD didn't take the time to make the device model match FreeBSD,
but rather just shoe-horned it into the system.
Warner
More information about the freebsd-hackers
mailing list