Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
caif_dev.c File Reference
#include <linux/kernel.h>
#include <linux/if_arp.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <net/netns/generic.h>
#include <net/net_namespace.h>
#include <net/pkt_sched.h>
#include <net/caif/caif_device.h>
#include <net/caif/caif_layer.h>
#include <net/caif/cfpkt.h>
#include <net/caif/cfcnfg.h>
#include <net/caif/cfserl.h>

Go to the source code of this file.

Data Structures

struct  caif_device_entry
 
struct  caif_device_entry_list
 
struct  caif_net
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ":%s(): " fmt, __func__
 

Functions

 MODULE_LICENSE ("GPL")
 
struct cfcnfgget_cfcnfg (struct net *net)
 
 EXPORT_SYMBOL (get_cfcnfg)
 
void caif_flow_cb (struct sk_buff *skb)
 
void caif_enroll_dev (struct net_device *dev, struct caif_dev_common *caifdev, struct cflayer *link_support, int head_room, struct cflayer **layer, int(**rcv_func)(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *))
 
 EXPORT_SYMBOL (caif_enroll_dev)
 
 module_init (caif_device_init)
 
 module_exit (caif_device_exit)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ":%s(): " fmt, __func__

Definition at line 11 of file caif_dev.c.

Function Documentation

void caif_enroll_dev ( struct net_device dev,
struct caif_dev_common caifdev,
struct cflayer link_support,
int  head_room,
struct cflayer **  layer,
int(**)(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *)  rcv_func 
)

struct caif_enroll_dev - Enroll a net-device as a CAIF Link layer : Network device to enroll. : Configuration information from CAIF Link Layer : Link layer support layer : Head room needed by link support layer : Lowest layer in CAIF stack : Receive function for CAIF stack.

This function enroll a CAIF link layer into CAIF Stack and expects the interface to be able to handle CAIF payload. The link_support layer is used to add any Link Layer specific framing.

Definition at line 303 of file caif_dev.c.

void caif_flow_cb ( struct sk_buff skb)

Definition at line 121 of file caif_dev.c.

EXPORT_SYMBOL ( get_cfcnfg  )
EXPORT_SYMBOL ( caif_enroll_dev  )
struct cfcnfg* get_cfcnfg ( struct net net)
read

cfcnfg_create() - Get the CAIF configuration object given network. : Network for the CAIF configuration object.

Definition at line 57 of file caif_dev.c.

module_exit ( caif_device_exit  )
module_init ( caif_device_init  )
MODULE_LICENSE ( "GPL"  )