Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
llc_core.c File Reference
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/if_ether.h>
#include <linux/netdevice.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/init.h>
#include <net/net_namespace.h>
#include <net/llc.h>

Go to the source code of this file.

Functions

 LIST_HEAD (llc_sap_list)
 
 DEFINE_SPINLOCK (llc_sap_list_lock)
 
struct llc_sapllc_sap_find (unsigned char sap_value)
 
struct llc_sapllc_sap_open (unsigned char lsap, int(*func)(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev))
 
void llc_sap_close (struct llc_sap *sap)
 
 module_init (llc_init)
 
 module_exit (llc_exit)
 
 EXPORT_SYMBOL (llc_sap_list)
 
 EXPORT_SYMBOL (llc_sap_list_lock)
 
 EXPORT_SYMBOL (llc_sap_find)
 
 EXPORT_SYMBOL (llc_sap_open)
 
 EXPORT_SYMBOL (llc_sap_close)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Procom 1997, Jay Schullist 2001, Arnaldo C. Melo 2001-2003")
 
 MODULE_DESCRIPTION ("LLC IEEE 802.2 core support")
 

Function Documentation

DEFINE_SPINLOCK ( llc_sap_list_lock  )
EXPORT_SYMBOL ( llc_sap_list  )
EXPORT_SYMBOL ( llc_sap_list_lock  )
EXPORT_SYMBOL ( llc_sap_find  )
EXPORT_SYMBOL ( llc_sap_open  )
EXPORT_SYMBOL ( llc_sap_close  )
LIST_HEAD ( llc_sap_list  )
void llc_sap_close ( struct llc_sap sap)

llc_sap_close - close interface for upper layers. : SAP to be closed.

Close interface function to upper layer. Each one who wants to close an open SAP (for example NetBEUI) should call this function. Removes this sap from the list of saps in the station and then frees the memory for this sap.

Definition at line 122 of file llc_core.c.

struct llc_sap* llc_sap_find ( unsigned char  sap_value)
read

llc_sap_find - searchs a SAP in station : sap to be found

Searchs for a sap in the sap list of the LLC's station upon the sap ID. If the sap is found it will be refcounted and the user will have to do a llc_sap_put after use. Returns the sap or NULL if not found.

Definition at line 70 of file llc_core.c.

struct llc_sap* llc_sap_open ( unsigned char  lsap,
int(*)(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev)  func 
)
read

llc_sap_open - open interface to the upper layers. : SAP number. : rcv func for datalink protos

Interface function to upper layer. Each one who wants to get a SAP (for example NetBEUI) should call this function. Returns the opened SAP for success, NULL for failure.

Definition at line 91 of file llc_core.c.

MODULE_AUTHOR ( "Procom  1997,
Jay Schullist  2001,
Arnaldo C.Melo 2001-2003"   
)
MODULE_DESCRIPTION ( "LLC IEEE 802.2 core support )
module_exit ( llc_exit  )
module_init ( llc_init  )
MODULE_LICENSE ( "GPL"  )