Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
usbip_common.c File Reference
#include <asm/byteorder.h>
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <net/sock.h>
#include "usbip_common.h"

Go to the source code of this file.

Macros

#define DRIVER_AUTHOR   "Takahiro Hirofuchi <[email protected]>"
 
#define DRIVER_DESC   "USB/IP Core"
 

Functions

 EXPORT_SYMBOL_GPL (usbip_debug_flag)
 
 module_param (usbip_debug_flag, ulong, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (usbip_debug_flag,"debug flags (defined in usbip_common.h)")
 
 EXPORT_SYMBOL_GPL (dev_attr_usbip_debug)
 
 DEVICE_ATTR (usbip_debug,(S_IRUGO|S_IWUSR), show_flag, store_flag)
 
void usbip_dump_urb (struct urb *urb)
 
 EXPORT_SYMBOL_GPL (usbip_dump_urb)
 
void usbip_dump_header (struct usbip_header *pdu)
 
 EXPORT_SYMBOL_GPL (usbip_dump_header)
 
int usbip_recv (struct socket *sock, void *buf, int size)
 
 EXPORT_SYMBOL_GPL (usbip_recv)
 
struct socketsockfd_to_socket (unsigned int sockfd)
 
 EXPORT_SYMBOL_GPL (sockfd_to_socket)
 
void usbip_pack_pdu (struct usbip_header *pdu, struct urb *urb, int cmd, int pack)
 
 EXPORT_SYMBOL_GPL (usbip_pack_pdu)
 
void usbip_header_correct_endian (struct usbip_header *pdu, int send)
 
 EXPORT_SYMBOL_GPL (usbip_header_correct_endian)
 
voidusbip_alloc_iso_desc_pdu (struct urb *urb, ssize_t *bufflen)
 
 EXPORT_SYMBOL_GPL (usbip_alloc_iso_desc_pdu)
 
int usbip_recv_iso (struct usbip_device *ud, struct urb *urb)
 
 EXPORT_SYMBOL_GPL (usbip_recv_iso)
 
void usbip_pad_iso (struct usbip_device *ud, struct urb *urb)
 
 EXPORT_SYMBOL_GPL (usbip_pad_iso)
 
int usbip_recv_xbuff (struct usbip_device *ud, struct urb *urb)
 
 EXPORT_SYMBOL_GPL (usbip_recv_xbuff)
 
 module_init (usbip_core_init)
 
 module_exit (usbip_core_exit)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (USBIP_VERSION)
 

Variables

unsigned long usbip_debug_flag
 
struct device_attribute dev_attr_usbip_debug
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Takahiro Hirofuchi <[email protected]>"

Definition at line 32 of file usbip_common.c.

#define DRIVER_DESC   "USB/IP Core"

Definition at line 33 of file usbip_common.c.

Function Documentation

DEVICE_ATTR ( usbip_debug  ,
(S_IRUGO|S_IWUSR ,
show_flag  ,
store_flag   
)
EXPORT_SYMBOL_GPL ( usbip_debug_flag  )
EXPORT_SYMBOL_GPL ( dev_attr_usbip_debug  )
EXPORT_SYMBOL_GPL ( usbip_dump_urb  )
EXPORT_SYMBOL_GPL ( usbip_dump_header  )
EXPORT_SYMBOL_GPL ( usbip_recv  )
EXPORT_SYMBOL_GPL ( sockfd_to_socket  )
EXPORT_SYMBOL_GPL ( usbip_pack_pdu  )
EXPORT_SYMBOL_GPL ( usbip_header_correct_endian  )
EXPORT_SYMBOL_GPL ( usbip_alloc_iso_desc_pdu  )
EXPORT_SYMBOL_GPL ( usbip_recv_iso  )
EXPORT_SYMBOL_GPL ( usbip_pad_iso  )
EXPORT_SYMBOL_GPL ( usbip_recv_xbuff  )
MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( usbip_core_exit  )
module_init ( usbip_core_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( usbip_debug_flag  ,
ulong  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( usbip_debug_flag  ,
"debug flags (defined in usbip_common.h)"   
)
MODULE_VERSION ( USBIP_VERSION  )
struct socket* sockfd_to_socket ( unsigned int  sockfd)
read

Definition at line 402 of file usbip_common.c.

void* usbip_alloc_iso_desc_pdu ( struct urb urb,
ssize_t bufflen 
)

Definition at line 642 of file usbip_common.c.

void usbip_dump_header ( struct usbip_header pdu)

Definition at line 297 of file usbip_common.c.

void usbip_dump_urb ( struct urb urb)

Definition at line 251 of file usbip_common.c.

void usbip_header_correct_endian ( struct usbip_header pdu,
int  send 
)

Definition at line 575 of file usbip_common.c.

void usbip_pack_pdu ( struct usbip_header pdu,
struct urb urb,
int  cmd,
int  pack 
)

Definition at line 484 of file usbip_common.c.

void usbip_pad_iso ( struct usbip_device ud,
struct urb urb 
)

Definition at line 741 of file usbip_common.c.

int usbip_recv ( struct socket sock,
void buf,
int  size 
)

Definition at line 341 of file usbip_common.c.

int usbip_recv_iso ( struct usbip_device ud,
struct urb urb 
)

Definition at line 668 of file usbip_common.c.

int usbip_recv_xbuff ( struct usbip_device ud,
struct urb urb 
)

Definition at line 775 of file usbip_common.c.

Variable Documentation

struct device_attribute dev_attr_usbip_debug

Definition at line 45 of file usbip_common.c.

unsigned long usbip_debug_flag

Definition at line 38 of file usbip_common.c.