MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bus_generic_probe

Function bus_generic_probe

freebsd/kern/subr_bus.c:3681–3703  ·  view source on GitHub ↗

* @brief Helper function for implementing DEVICE_PROBE() * * This function can be used to help implement the DEVICE_PROBE() for * a bus (i.e. a device which has other devices attached to it). It * calls the DEVICE_IDENTIFY() method of each driver in the device's * devclass. */

Source from the content-addressed store, hash-verified

3679 * devclass.
3680 */
3681int
3682bus_generic_probe(device_t dev)
3683{
3684 devclass_t dc = dev->devclass;
3685 driverlink_t dl;
3686
3687 TAILQ_FOREACH(dl, &dc->drivers, link) {
3688 /*
3689 * If this driver's pass is too high, then ignore it.
3690 * For most drivers in the default pass, this will
3691 * never be true. For early-pass drivers they will
3692 * only call the identify routines of eligible drivers
3693 * when this routine is called. Drivers for later
3694 * passes should have their identify routines called
3695 * on early-pass buses during BUS_NEW_PASS().
3696 */
3697 if (dl->pass > bus_current_pass)
3698 continue;
3699 DEVICE_IDENTIFY(dl->driver, dev);
3700 }
3701
3702 return (0);
3703}
3704
3705/**
3706 * @brief Helper function for implementing DEVICE_ATTACH()

Callers 15

bcm_vchiq_attachFunction · 0.85
nexus_acpi_attachFunction · 0.85
jz4780_nemc_attachFunction · 0.85
apb_attachFunction · 0.85
argemdio_attachFunction · 0.85
apb_attachFunction · 0.85
aremdio_attachFunction · 0.85
nexus_attachFunction · 0.85
obio_attachFunction · 0.85
ciu_attachFunction · 0.85
obio_attachFunction · 0.85
gt_attachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected