1USB_GET_DEV(9) USB Core APIs USB_GET_DEV(9)
2
3
4
6 usb_get_dev - increments the reference count of the usb device
7 structure
8
10 struct usb_device * usb_get_dev(struct usb_device * dev);
11
13 dev
14 the device being referenced
15
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
24 A pointer to the device with the incremented reference counter.
25
27Kernel Hackers Manual 3.10 June 2019 USB_GET_DEV(9)