最終更新:2014-05-12 (月) 16:31:08 (3630d)
usb_driver.probe
Top / usb_driver.probe
USBコアが、USBデバイスの接続を検出した際に呼び出す関数
Called to see if the driver is willing to manage a particular interface on a device. If it is, probe returns zero and uses usb_set_intfdata() to associate driver-specific data with the interface. It may also use usb_set_interface() to specify the appropriate altsetting. If unwilling to manage the interface, return -ENODEV, if genuine IO errors occurred, an appropriate negative errno value.
- int probe(struct usb_interface *intf, const struct usb_device_id *id);
メモ
- 引き渡されたデバイスに関する情報をチェックし、ドライバがそのデバイスに本当に適しているかどうかを判断
呼び出し元
セットされる関数
- usbhid_probe - usbhid
- usb_mouse_probe? - usbmouse
- usb_kbd_probe? - usbkbd
- usb_serial_probe? - usbserial?
関連
- interface_to_usbdev?
- usb_device
- usb_host_interface?
- usb_endpoint_descriptor - エンドポイントディスクリプタ
- init_usb_anchor?
- usb_get_dev - increments the reference count of the usb device structure
- usb_endpoint_is_bulk_in - check if the endpoint is bulk IN
- usb_endpoint_maxp? - get endpoint's max packet size
- usb_alloc_urb - creates a new urb for a USB driver to use
- usb_endpoint_is_bulk_out? - check if the endpoint is bulk OUT
- usb_set_intfdata?
- usb_register_dev (fops)