* @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. */
| 3710 | * children. |
| 3711 | */ |
| 3712 | int |
| 3713 | bus_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 |
no test coverage detected