Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
stub.h File Reference
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/usb.h>
#include <linux/wait.h>

Go to the source code of this file.

Data Structures

struct  stub_device
 
struct  stub_priv
 
struct  stub_unlink
 
struct  bus_id_priv
 

Macros

#define STUB_BUSID_OTHER   0
 
#define STUB_BUSID_REMOV   1
 
#define STUB_BUSID_ADDED   2
 
#define STUB_BUSID_ALLOC   3
 
#define BUSID_SIZE   32
 

Functions

struct bus_id_privget_busid_priv (const char *busid)
 
int del_match_busid (char *busid)
 
void stub_device_cleanup_urbs (struct stub_device *sdev)
 
int stub_rx_loop (void *data)
 
void stub_enqueue_ret_unlink (struct stub_device *sdev, __u32 seqnum, __u32 status)
 
void stub_complete (struct urb *urb)
 
int stub_tx_loop (void *data)
 

Variables

struct kmem_cachestub_priv_cache
 
struct usb_driver stub_driver
 

Macro Definition Documentation

#define BUSID_SIZE   32

Definition at line 82 of file stub.h.

#define STUB_BUSID_ADDED   2

Definition at line 32 of file stub.h.

#define STUB_BUSID_ALLOC   3

Definition at line 33 of file stub.h.

#define STUB_BUSID_OTHER   0

Definition at line 30 of file stub.h.

#define STUB_BUSID_REMOV   1

Definition at line 31 of file stub.h.

Function Documentation

int del_match_busid ( char busid)

Definition at line 110 of file stub_main.c.

struct bus_id_priv* get_busid_priv ( const char busid)
read

Definition at line 68 of file stub_main.c.

void stub_complete ( struct urb urb)

stub_complete - completion handler of a usbip urb : pointer to the urb completed

When a urb has completed, the USB core driver calls this function mostly in the interrupt context. To return the result of a urb, the completed urb is linked to the pending list of returning.

Definition at line 65 of file stub_tx.c.

void stub_device_cleanup_urbs ( struct stub_device sdev)

Definition at line 225 of file stub_main.c.

void stub_enqueue_ret_unlink ( struct stub_device sdev,
__u32  seqnum,
__u32  status 
)

Definition at line 38 of file stub_tx.c.

int stub_rx_loop ( void data)

Definition at line 593 of file stub_rx.c.

int stub_tx_loop ( void data)

Definition at line 363 of file stub_tx.c.

Variable Documentation

struct usb_driver stub_driver

Definition at line 542 of file stub_dev.c.

struct kmem_cache* stub_priv_cache

Definition at line 29 of file stub_main.c.