Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cdc-wdm.h File Reference

Go to the source code of this file.

Functions

struct usb_driver * usb_cdc_wdm_register (struct usb_interface *intf, struct usb_endpoint_descriptor *ep, int bufsize, int(*manage_power)(struct usb_interface *, int))
 

Function Documentation

struct usb_driver* usb_cdc_wdm_register ( struct usb_interface intf,
struct usb_endpoint_descriptor ep,
int  bufsize,
int(*)(struct usb_interface *, int manage_power 
)
read

usb_cdc_wdm_register - register a WDM subdriver : usb interface the subdriver will associate with : interrupt endpoint to monitor for notifications : maximum message size to support for read/write

Create WDM usb class character device and associate it with intf without binding, allowing another driver to manage the interface.

The subdriver will manage the given interrupt endpoint exclusively and will issue control requests referring to the given intf. It will otherwise avoid interferring, and in particular not do usb_set_intfdata/usb_get_intfdata on intf.

The return value is a pointer to the subdriver's struct usb_driver. The registering driver is responsible for calling this subdriver's disconnect, suspend, resume, pre_reset and post_reset methods from its own.

Definition at line 860 of file cdc-wdm.c.