|DEVICE_ATTACH(9)||Kernel Developer's Manual||DEVICE_ATTACH(9)|
attach a device
Attach a device to the system after the
method has been called and has indicated that the device exists. The
method should initialize the hardware and allocate other system resources
(such as devfs(5) entries).
Devices which implement buses should use this method to probe for the existence of devices attached to the bus and add them as children. If this is combined with the use of bus_generic_attach(9) the child devices will be automatically probed and attached.
Zero is returned on success, otherwise an appropriate error is returned.
This manual page was written by Doug Rabson <dfr@FreeBSD.org>.
|January 15, 2017||Debian|