Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hdlc.c File Reference
#include <linux/errno.h>
#include <linux/hdlc.h>
#include <linux/if_arp.h>
#include <linux/inetdevice.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/pkt_sched.h>
#include <linux/poll.h>
#include <linux/rtnetlink.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <net/net_namespace.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

int hdlc_change_mtu (struct net_device *dev, int new_mtu)
 
netdev_tx_t hdlc_start_xmit (struct sk_buff *skb, struct net_device *dev)
 
int hdlc_open (struct net_device *dev)
 
void hdlc_close (struct net_device *dev)
 
int hdlc_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
 
struct net_devicealloc_hdlcdev (void *priv)
 
void unregister_hdlc_device (struct net_device *dev)
 
int attach_hdlc_protocol (struct net_device *dev, struct hdlc_proto *proto, size_t size)
 
void detach_hdlc_protocol (struct net_device *dev)
 
void register_hdlc_protocol (struct hdlc_proto *proto)
 
void unregister_hdlc_protocol (struct hdlc_proto *proto)
 
 MODULE_AUTHOR ("Krzysztof Halasa <khc@pm.waw.pl>")
 
 MODULE_DESCRIPTION ("HDLC support module")
 
 MODULE_LICENSE ("GPL v2")
 
 EXPORT_SYMBOL (hdlc_change_mtu)
 
 EXPORT_SYMBOL (hdlc_start_xmit)
 
 EXPORT_SYMBOL (hdlc_open)
 
 EXPORT_SYMBOL (hdlc_close)
 
 EXPORT_SYMBOL (hdlc_ioctl)
 
 EXPORT_SYMBOL (alloc_hdlcdev)
 
 EXPORT_SYMBOL (unregister_hdlc_device)
 
 EXPORT_SYMBOL (register_hdlc_protocol)
 
 EXPORT_SYMBOL (unregister_hdlc_protocol)
 
 EXPORT_SYMBOL (attach_hdlc_protocol)
 
 EXPORT_SYMBOL (detach_hdlc_protocol)
 
 module_init (hdlc_module_init)
 
 module_exit (hdlc_module_exit)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 25 of file hdlc.c.

Function Documentation

struct net_device* alloc_hdlcdev ( void priv)
read

Definition at line 256 of file hdlc.c.

int attach_hdlc_protocol ( struct net_device dev,
struct hdlc_proto proto,
size_t  size 
)

Definition at line 275 of file hdlc.c.

void detach_hdlc_protocol ( struct net_device dev)

Definition at line 296 of file hdlc.c.

EXPORT_SYMBOL ( hdlc_change_mtu  )
EXPORT_SYMBOL ( hdlc_start_xmit  )
EXPORT_SYMBOL ( hdlc_open  )
EXPORT_SYMBOL ( hdlc_close  )
EXPORT_SYMBOL ( hdlc_ioctl  )
EXPORT_SYMBOL ( alloc_hdlcdev  )
EXPORT_SYMBOL ( unregister_hdlc_device  )
EXPORT_SYMBOL ( register_hdlc_protocol  )
EXPORT_SYMBOL ( unregister_hdlc_protocol  )
EXPORT_SYMBOL ( attach_hdlc_protocol  )
EXPORT_SYMBOL ( detach_hdlc_protocol  )
int hdlc_change_mtu ( struct net_device dev,
int  new_mtu 
)

Definition at line 49 of file hdlc.c.

void hdlc_close ( struct net_device dev)

Definition at line 184 of file hdlc.c.

int hdlc_ioctl ( struct net_device dev,
struct ifreq ifr,
int  cmd 
)

Definition at line 206 of file hdlc.c.

int hdlc_open ( struct net_device dev)

Definition at line 150 of file hdlc.c.

netdev_tx_t hdlc_start_xmit ( struct sk_buff skb,
struct net_device dev 
)

Definition at line 71 of file hdlc.c.

MODULE_AUTHOR ( "Krzysztof Halasa <khc@pm.waw.pl>"  )
MODULE_DESCRIPTION ( "HDLC support module )
module_exit ( hdlc_module_exit  )
module_init ( hdlc_module_init  )
MODULE_LICENSE ( "GPL v2 )
void register_hdlc_protocol ( struct hdlc_proto proto)

Definition at line 312 of file hdlc.c.

void unregister_hdlc_device ( struct net_device dev)

Definition at line 265 of file hdlc.c.

void unregister_hdlc_protocol ( struct hdlc_proto proto)

Definition at line 321 of file hdlc.c.