1USB_GET_DEV(9)                   USB Core APIs                  USB_GET_DEV(9)
2
3
4

NAME

6       usb_get_dev - increments the reference count of the usb device
7       structure
8

SYNOPSIS

10       struct usb_device * usb_get_dev(struct usb_device * dev);
11

ARGUMENTS

13       dev
14           the device being referenced
15

DESCRIPTION

17       Each live reference to a device should be refcounted.
18
19       Drivers for USB interfaces should normally record such references in
20       their probe methods, when they bind to an interface, and release them
21       by calling usb_put_dev, in their disconnect methods.
22
23       A pointer to the device with the incremented reference counter is
24       returned.
25
27Kernel Hackers Manual 2.6.       November 2011                  USB_GET_DEV(9)
Impressum