Linux Kernel设备驱动模型之驱动探测设备

    xiaoxiao2021-03-25  73

    /**  * driver_attach - try to bind driver to devices.  * @drv: driver.  *  * Walk the list of devices that the bus has on it and try to  * match the driver with each one.  If driver_probe_device()  * returns 0 and the @dev->driver is set, we've found a  * compatible pair.  */ int driver_attach(struct device_driver *drv) {  return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); } EXPORT_SYMBOL_GPL(driver_attach);        
    转载请注明原文地址: https://ju.6miu.com/read-16041.html

    最新回复(0)