USB_NEW_DEVICE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

usb_new_device - perform initial device setup (usbcore-internal)  

SYNOPSIS

"SYNOPSIS"

int usb_new_device (struct usb_device * udev);  

ARGUMENTS

udev
newly addressed device (in ADDRESS state)
 

DESCRIPTION

This is called with devices which have been enumerated, but not yet configured. The device descriptor is available, but not descriptors for any device configuration. The caller must have locked udev and either the parent hub (if udev is a normal device) or else the usb_bus_list_lock (if udev is a root hub). The parent's pointer to udev has already been installed, but udev is not yet visible through sysfs or other filesystem code.

Returns 0 for success (device is configured and listed, with its interfaces, in sysfs); else a negative errno value.

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

Only the hub driver should ever call this; root hub registration uses it indirectly.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:57 GMT, October 09, 2005