usb_register_dev man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

USB_REGISTER_DEV(9)		 USB Core APIs		   USB_REGISTER_DEV(9)

NAME
       usb_register_dev - register a USB device, and ask for a minor number

SYNOPSIS
       int usb_register_dev(struct usb_interface * intf,
			    struct usb_class_driver * class_driver);

ARGUMENTS
       intf
	   pointer to the usb_interface that is being registered

       class_driver
	   pointer to the usb_class_driver for this device

DESCRIPTION
       This should be called by all USB drivers that use the USB major number.
       If CONFIG_USB_DYNAMIC_MINORS is enabled, the minor number will be
       dynamically allocated out of the list of available ones. If it is not
       enabled, the minor number will be based on the next available free
       minor, starting at the class_driver->minor_base.

       This function also creates a usb class device in the sysfs tree.

       usb_deregister_dev must be called when the driver is done with the
       minor numbers given out by this function.

       Returns -EINVAL if something bad happens with trying to register a
       device, and 0 on success.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013		   USB_REGISTER_DEV(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net