.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "USB_GET_DEV" "" "06 October 2005" "" "" .SH NAME usb_get_dev \- increments the reference count of the usb device structure .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct usb_device * usb_get_dev (struct usb_device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR the device being referenced .SH "DESCRIPTION" .PP Each live reference to a device should be refcounted. .PP Drivers for USB interfaces should normally record such references in their \fBprobe\fR methods, when they bind to an interface, and release them by calling \fBusb_put_dev\fR, in their \fBdisconnect\fR methods. .PP A pointer to the device with the incremented reference counter is returned.