Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
f_serial.c File Reference
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include "u_serial.h"
#include "gadget_chips.h"

Go to the source code of this file.

Data Structures

struct  f_gser
 

Functions

int __init gser_bind_config (struct usb_configuration *c, u8 port_num)
 

Function Documentation

int __init gser_bind_config ( struct usb_configuration c,
u8  port_num 
)

gser_bind_config - add a generic serial function to a configuration : the configuration to support the serial instance : /dev/ttyGS* port this interface will use Context: single threaded during gadget setup

Returns zero on success, else negative errno.

Caller must have called () with enough ports to handle all the ones it binds. Caller is also responsible for calling () before module unload.

Definition at line 286 of file f_serial.c.