1USB_DEREGISTER_DEV(9) USB Core APIs USB_DEREGISTER_DEV(9)
2
3
4
6 usb_deregister_dev - deregister a USB device's dynamic minor.
7
9 void usb_deregister_dev(struct usb_interface * intf,
10 struct usb_class_driver * class_driver);
11
13 intf
14 pointer to the usb_interface that is being deregistered
15
16 class_driver
17 pointer to the usb_class_driver for this device
18
20 Used in conjunction with usb_register_dev. This function is called when
21 the USB driver is finished with the minor numbers gotten from a call to
22 usb_register_dev (usually when the device is disconnected from the
23 system.)
24
25 This function also removes the usb class device from the sysfs tree.
26
27 This should be called by all drivers that use the USB major number.
28
30Kernel Hackers Manual 3.10 June 2019 USB_DEREGISTER_DEV(9)