usb_get_descriptor 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_GET_DESCRIPTOR(9)		 USB Core APIs		 USB_GET_DESCRIPTOR(9)

NAME
       usb_get_descriptor - issues a generic GET_DESCRIPTOR request

SYNOPSIS
       int usb_get_descriptor(struct usb_device * dev, unsigned char type,
			      unsigned char index, void * buf, int size);

ARGUMENTS
       dev
	   the device whose descriptor is being retrieved

       type
	   the descriptor type (USB_DT_*)

       index
	   the number of the descriptor

       buf
	   where to put the descriptor

       size
	   how big is “buf”?

CONTEXT
       !in_interrupt ()

DESCRIPTION
       Gets a USB descriptor. Convenience functions exist to simplify getting
       some types of descriptors. Use usb_get_string or usb_string for
       USB_DT_STRING. Device (USB_DT_DEVICE) and configuration descriptors
       (USB_DT_CONFIG) are part of the device structure. In addition to a
       number of USB-standard descriptors, some devices also use
       class-specific or vendor-specific descriptors.

       This call is synchronous, and may not be used in an interrupt context.

       Returns the number of bytes received on success, or else the status
       code returned by the underlying usb_control_msg call.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013		 USB_GET_DESCRIPTOR(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