Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
connector.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/skbuff.h>
#include <linux/netlink.h>
#include <linux/moduleparam.h>
#include <linux/connector.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/proc_fs.h>
#include <linux/spinlock.h>
#include <net/sock.h>

Go to the source code of this file.

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Evgeniy Polyakov <[email protected]>")
 
 MODULE_DESCRIPTION ("Generic userspace <-> kernelspace connector.")
 
 MODULE_ALIAS_NET_PF_PROTO (PF_NETLINK, NETLINK_CONNECTOR)
 
int cn_netlink_send (struct cn_msg *msg, u32 __group, gfp_t gfp_mask)
 
 EXPORT_SYMBOL_GPL (cn_netlink_send)
 
int cn_add_callback (struct cb_id *id, const char *name, void(*callback)(struct cn_msg *, struct netlink_skb_parms *))
 
 EXPORT_SYMBOL_GPL (cn_add_callback)
 
void cn_del_callback (struct cb_id *id)
 
 EXPORT_SYMBOL_GPL (cn_del_callback)
 
 subsys_initcall (cn_init)
 
 module_exit (cn_fini)
 

Function Documentation

int cn_add_callback ( struct cb_id id,
const char name,
void(*)(struct cn_msg *, struct netlink_skb_parms *)  callback 
)

Definition at line 187 of file connector.c.

void cn_del_callback ( struct cb_id id)

Definition at line 213 of file connector.c.

int cn_netlink_send ( struct cn_msg msg,
u32  __group,
gfp_t  gfp_mask 
)

Definition at line 66 of file connector.c.

EXPORT_SYMBOL_GPL ( cn_netlink_send  )
EXPORT_SYMBOL_GPL ( cn_add_callback  )
EXPORT_SYMBOL_GPL ( cn_del_callback  )
MODULE_ALIAS_NET_PF_PROTO ( PF_NETLINK  ,
NETLINK_CONNECTOR   
)
MODULE_AUTHOR ( "Evgeniy Polyakov <[email protected]>"  )
MODULE_DESCRIPTION ( "Generic userspace <-> kernelspace connector."  )
module_exit ( cn_fini  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( cn_init  )