usb_deregister_dev(9)

usb_deregister_dev9

Deregister a usb device's dynamic minor.

Usage

void usb_deregister_dev(struct usb_interface * intf, struct usb_class_driver * class_driver);

Arguments

intf

pointer to the usb_interface that is being deregistered

class_driver

pointer to the usb_class_driver for this device

Overview

Used in conjunction with usb_register_dev. This function is called when the USB driver is finished with the minor numbers gotten from a call to usb_register_dev (usually when the device is disconnected from the system.)

This function also removes the usb class device from the sysfs tree.

This should be called by all drivers that use the USB major number.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.