Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dev.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/can.h>
#include <linux/can/dev.h>
#include <linux/can/netlink.h>
#include <net/rtnetlink.h>

Go to the source code of this file.

Macros

#define MOD_DESC   "CAN device driver interface"
 

Functions

 MODULE_DESCRIPTION (MOD_DESC)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Wolfgang Grandegger <[email protected]>")
 
u8 can_dlc2len (u8 can_dlc)
 
 EXPORT_SYMBOL_GPL (can_dlc2len)
 
u8 can_len2dlc (u8 len)
 
 EXPORT_SYMBOL_GPL (can_len2dlc)
 
void can_put_echo_skb (struct sk_buff *skb, struct net_device *dev, unsigned int idx)
 
 EXPORT_SYMBOL_GPL (can_put_echo_skb)
 
unsigned int can_get_echo_skb (struct net_device *dev, unsigned int idx)
 
 EXPORT_SYMBOL_GPL (can_get_echo_skb)
 
void can_free_echo_skb (struct net_device *dev, unsigned int idx)
 
 EXPORT_SYMBOL_GPL (can_free_echo_skb)
 
int can_restart_now (struct net_device *dev)
 
void can_bus_off (struct net_device *dev)
 
 EXPORT_SYMBOL_GPL (can_bus_off)
 
struct sk_buffalloc_can_skb (struct net_device *dev, struct can_frame **cf)
 
 EXPORT_SYMBOL_GPL (alloc_can_skb)
 
struct sk_buffalloc_can_err_skb (struct net_device *dev, struct can_frame **cf)
 
 EXPORT_SYMBOL_GPL (alloc_can_err_skb)
 
struct net_devicealloc_candev (int sizeof_priv, unsigned int echo_skb_max)
 
 EXPORT_SYMBOL_GPL (alloc_candev)
 
void free_candev (struct net_device *dev)
 
 EXPORT_SYMBOL_GPL (free_candev)
 
int open_candev (struct net_device *dev)
 
 EXPORT_SYMBOL_GPL (open_candev)
 
void close_candev (struct net_device *dev)
 
 EXPORT_SYMBOL_GPL (close_candev)
 
int register_candev (struct net_device *dev)
 
 EXPORT_SYMBOL_GPL (register_candev)
 
void unregister_candev (struct net_device *dev)
 
 EXPORT_SYMBOL_GPL (unregister_candev)
 
 module_init (can_dev_init)
 
 module_exit (can_dev_exit)
 
 MODULE_ALIAS_RTNL_LINK ("can")
 

Macro Definition Documentation

#define MOD_DESC   "CAN device driver interface"

Definition at line 30 of file dev.c.

Function Documentation

struct sk_buff* alloc_can_err_skb ( struct net_device dev,
struct can_frame **  cf 
)
read

Definition at line 518 of file dev.c.

struct sk_buff* alloc_can_skb ( struct net_device dev,
struct can_frame **  cf 
)
read

Definition at line 500 of file dev.c.

struct net_device* alloc_candev ( int  sizeof_priv,
unsigned int  echo_skb_max 
)
read

Definition at line 536 of file dev.c.

void can_bus_off ( struct net_device dev)

Definition at line 472 of file dev.c.

u8 can_dlc2len ( u8  can_dlc)

Definition at line 42 of file dev.c.

void can_free_echo_skb ( struct net_device dev,
unsigned int  idx 
)

Definition at line 388 of file dev.c.

unsigned int can_get_echo_skb ( struct net_device dev,
unsigned int  idx 
)

Definition at line 362 of file dev.c.

u8 can_len2dlc ( u8  len)

Definition at line 60 of file dev.c.

void can_put_echo_skb ( struct sk_buff skb,
struct net_device dev,
unsigned int  idx 
)

Definition at line 311 of file dev.c.

int can_restart_now ( struct net_device dev)

Definition at line 446 of file dev.c.

void close_candev ( struct net_device dev)

Definition at line 608 of file dev.c.

EXPORT_SYMBOL_GPL ( can_dlc2len  )
EXPORT_SYMBOL_GPL ( can_len2dlc  )
EXPORT_SYMBOL_GPL ( can_put_echo_skb  )
EXPORT_SYMBOL_GPL ( can_get_echo_skb  )
EXPORT_SYMBOL_GPL ( can_free_echo_skb  )
EXPORT_SYMBOL_GPL ( can_bus_off  )
EXPORT_SYMBOL_GPL ( alloc_can_skb  )
EXPORT_SYMBOL_GPL ( alloc_can_err_skb  )
EXPORT_SYMBOL_GPL ( alloc_candev  )
EXPORT_SYMBOL_GPL ( free_candev  )
EXPORT_SYMBOL_GPL ( open_candev  )
EXPORT_SYMBOL_GPL ( close_candev  )
EXPORT_SYMBOL_GPL ( register_candev  )
EXPORT_SYMBOL_GPL ( unregister_candev  )
void free_candev ( struct net_device dev)

Definition at line 571 of file dev.c.

MODULE_ALIAS_RTNL_LINK ( "can"  )
MODULE_AUTHOR ( "Wolfgang Grandegger <[email protected]>"  )
MODULE_DESCRIPTION ( MOD_DESC  )
module_exit ( can_dev_exit  )
module_init ( can_dev_init  )
MODULE_LICENSE ( "GPL v2 )
int open_candev ( struct net_device dev)

Definition at line 583 of file dev.c.

int register_candev ( struct net_device dev)

Definition at line 782 of file dev.c.

void unregister_candev ( struct net_device dev)

Definition at line 792 of file dev.c.