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

Function bus_generic_attach

freebsd/kern/subr_bus.c:3712–3722  ·  view source on GitHub ↗

* @brief Helper function for implementing DEVICE_ATTACH() * * This function can be used to help implement the DEVICE_ATTACH() for * a bus. It calls device_probe_and_attach() for each of the device's * children. */

Source from the content-addressed store, hash-verified

3710 * children.
3711 */
3712int
3713bus_generic_attach(device_t dev)
3714{
3715 device_t child;
3716
3717 TAILQ_FOREACH(child, &dev->children, link) {
3718 device_probe_and_attach(child);
3719 }
3720
3721 return (0);
3722}
3723
3724/**
3725 * @brief Helper function for delaying attaching children

Callers 15

bcm_vchiq_attachFunction · 0.85
nexus_acpi_attachFunction · 0.85
jz4780_nemc_attachFunction · 0.85
jz4780_pinctrl_attachFunction · 0.85
jzsmb_attachFunction · 0.85
apb_attachFunction · 0.85
qca955x_pci_attachFunction · 0.85
ar71xx_pci_attachFunction · 0.85
ar724x_pci_attachFunction · 0.85
ar71xx_spi_attachFunction · 0.85
ar71xx_caldata_attachFunction · 0.85
argemdio_attachFunction · 0.85

Calls 1

device_probe_and_attachFunction · 0.85

Tested by

no test coverage detected