最終更新:2015-10-29 (木) 17:35:41 (1789d)  

usb_register_driver
Top / usb_register_driver

usb_register_driver - register a USB interface driver

@new_driver: USB operations for the interface driver
@owner: module owner of this driver.
@mod_name: module name string

Registers a USB interface driver with the USB core.  The list of
unattached interfaces will be rescanned whenever a new driver is
added, allowing the new driver to attach to any recognized interfaces.

Return: A negative error code on failure and 0 on success.

NOTE: if you want your driver to use the USB major number, you must call
usb_register_dev() to enable that functionality.  This function no longer
takes care of that.

実装

呼び出し元マクロ

呼び出し

設定

  • new_driver->drvwrap.driverはdevice_driver
    new_driver->drvwrap.driver.name(char *)new_driver->name
    new_driver->drvwrap.driver.bususb_bus_type
    new_driver->drvwrap.driver.probeusb_probe_interface
    new_driver->drvwrap.driver.removeusb_unbind_interface?

usb_driver

マクロ

関連