table of contents
USB_DRIVER_CLAIM_INT(9) | USB Core APIs | USB_DRIVER_CLAIM_INT(9) |
NAME¶
usb_driver_claim_interface - bind a driver to an interface
SYNOPSIS¶
int usb_driver_claim_interface(struct usb_driver * driver, struct usb_interface * iface, void * priv);
ARGUMENTS¶
driver
iface
priv
DESCRIPTION¶
This is used by usb device drivers that need to claim more than one interface on a device when probing (audio and acm are current examples). No device driver should directly modify internal usb_interface or usb_device structure members.
Few drivers should need to use this routine, since the most natural way to bind to an interface is to return the private data from the driver´s probe method.
Callers must own the device lock, so driver probe entries don´t need extra locking, but other call contexts may need to explicitly claim that lock.
COPYRIGHT¶
May 2024 | Kernel Hackers Manual 2.6. |