USB_DRIVER_RELEASE_INTERFACE

Section: (9)
Updated: 13 April 2004
Index Return to Main Contents

 

NAME

usb_driver_release_interface - unbind a driver from an interface  

SYNOPSIS

void usb_driver_release_interface (struct usb_driver * driver, struct usb_interface * iface);  

ARGUMENTS

driver
the driver to be unbound
iface
the interface from which it will be unbound
 

DESCRIPTION

In addition to unbinding the driver, this re-initializes the interface by selecting altsetting 0, the default alternate setting.

This can be used by drivers to release an interface without waiting for their disconnect methods to be called.

When the USB subsystem disconnects a driver from some interface, it automatically invokes this method for that interface. That means that even drivers that used usb_driver_claim_interface usually won't need to call this.

This call is synchronous, and may not be used in an interrupt context. Callers must own the driver model's usb bus writelock. So driver disconnect entries don't need extra locking, but other call contexts may need to explicitly claim that lock.  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.1.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 11:22:03 GMT, April 13, 2004