Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
usb-skeleton.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kref.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  usb_skel
 

Macros

#define USB_SKEL_VENDOR_ID   0xfff0
 
#define USB_SKEL_PRODUCT_ID   0xfff0
 
#define USB_SKEL_MINOR_BASE   192
 
#define MAX_TRANSFER   (PAGE_SIZE - 512)
 
#define WRITES_IN_FLIGHT   8
 
#define to_skel_dev(d)   container_of(d, struct usb_skel, kref)
 

Functions

 MODULE_DEVICE_TABLE (usb, skel_table)
 
 module_usb_driver (skel_driver)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX_TRANSFER   (PAGE_SIZE - 512)

Definition at line 42 of file usb-skeleton.c.

#define to_skel_dev (   d)    container_of(d, struct usb_skel, kref)

Definition at line 70 of file usb-skeleton.c.

#define USB_SKEL_MINOR_BASE   192

Definition at line 39 of file usb-skeleton.c.

#define USB_SKEL_PRODUCT_ID   0xfff0

Definition at line 28 of file usb-skeleton.c.

#define USB_SKEL_VENDOR_ID   0xfff0

Definition at line 27 of file usb-skeleton.c.

#define WRITES_IN_FLIGHT   8

Definition at line 46 of file usb-skeleton.c.

Function Documentation

MODULE_DEVICE_TABLE ( usb  ,
skel_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( skel_driver  )