Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
slcan.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/uaccess.h>
#include <linux/bitops.h>
#include <linux/string.h>
#include <linux/tty.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/if_arp.h>
#include <linux/if_ether.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/can.h>

Go to the source code of this file.

Data Structures

struct  slcan
 

Macros

#define SLCAN_MAGIC   0x53CA
 
#define SLC_MTU   (sizeof("T1111222281122334455667788EA5F\r")+1)
 
#define SLF_INUSE   0 /* Channel in use */
 
#define SLF_ERROR   1 /* Parity, etc. error */
 

Functions

 MODULE_ALIAS_LDISC (N_SLCAN)
 
 MODULE_DESCRIPTION ("serial line CAN interface")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Oliver Hartkopp <[email protected]>")
 
 module_param (maxdev, int, 0)
 
 MODULE_PARM_DESC (maxdev,"Maximum number of slcan interfaces")
 
 module_init (slcan_init)
 
 module_exit (slcan_exit)
 

Macro Definition Documentation

#define SLC_MTU   (sizeof("T1111222281122334455667788EA5F\r")+1)

Definition at line 76 of file slcan.c.

#define SLCAN_MAGIC   0x53CA

Definition at line 67 of file slcan.c.

#define SLF_ERROR   1 /* Parity, etc. error */

Definition at line 95 of file slcan.c.

#define SLF_INUSE   0 /* Channel in use */

Definition at line 94 of file slcan.c.

Function Documentation

MODULE_ALIAS_LDISC ( N_SLCAN  )
MODULE_AUTHOR ( "Oliver Hartkopp <[email protected]>"  )
MODULE_DESCRIPTION ( "serial line CAN interface )
module_exit ( slcan_exit  )
module_init ( slcan_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( maxdev  ,
int  ,
 
)
MODULE_PARM_DESC ( maxdev  ,
"Maximum number of slcan interfaces"   
)