Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
connector.h File Reference
#include <linux/atomic.h>
#include <linux/list.h>
#include <linux/workqueue.h>
#include <net/sock.h>
#include <uapi/linux/connector.h>

Go to the source code of this file.

Data Structures

struct  cn_queue_dev
 
struct  cn_callback_id
 
struct  cn_callback_entry
 
struct  cn_dev
 

Macros

#define CN_CBQ_NAMELEN   32
 

Functions

int cn_add_callback (struct cb_id *id, const char *name, void(*callback)(struct cn_msg *, struct netlink_skb_parms *))
 
void cn_del_callback (struct cb_id *)
 
int cn_netlink_send (struct cn_msg *, u32, gfp_t)
 
int cn_queue_add_callback (struct cn_queue_dev *dev, const char *name, struct cb_id *id, void(*callback)(struct cn_msg *, struct netlink_skb_parms *))
 
void cn_queue_del_callback (struct cn_queue_dev *dev, struct cb_id *id)
 
void cn_queue_release_callback (struct cn_callback_entry *)
 
struct cn_queue_devcn_queue_alloc_dev (const char *name, struct sock *)
 
void cn_queue_free_dev (struct cn_queue_dev *dev)
 
int cn_cb_equal (struct cb_id *, struct cb_id *)
 

Macro Definition Documentation

#define CN_CBQ_NAMELEN   32

Definition at line 33 of file connector.h.

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.

int cn_cb_equal ( struct cb_id ,
struct cb_id  
)

Definition at line 68 of file cn_queue.c.

void cn_del_callback ( struct cb_id )

Definition at line 213 of file connector.c.

int cn_netlink_send ( struct cn_msg ,
u32  ,
gfp_t   
)

Definition at line 66 of file connector.c.

int cn_queue_add_callback ( struct cn_queue_dev dev,
const char name,
struct cb_id id,
void(*)(struct cn_msg *, struct netlink_skb_parms *)  callback 
)

Definition at line 73 of file cn_queue.c.

struct cn_queue_dev* cn_queue_alloc_dev ( const char name,
struct sock  
)
read

Definition at line 126 of file cn_queue.c.

void cn_queue_del_callback ( struct cn_queue_dev dev,
struct cb_id id 
)

Definition at line 107 of file cn_queue.c.

void cn_queue_free_dev ( struct cn_queue_dev dev)

Definition at line 144 of file cn_queue.c.

void cn_queue_release_callback ( struct cn_callback_entry )

Definition at line 59 of file cn_queue.c.