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

Go to the source code of this file.

Macros

#define rcu_dereference_genl(p)   rcu_dereference_check(p, lockdep_genl_is_held())
 
#define genl_dereference(p)   rcu_dereference_protected(p, lockdep_genl_is_held())
 
#define MODULE_ALIAS_GENL_FAMILY(family)   MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family)
 

Functions

void genl_lock (void)
 
void genl_unlock (void)
 

Macro Definition Documentation

#define genl_dereference (   p)    rcu_dereference_protected(p, lockdep_genl_is_held())

genl_dereference - fetch RCU pointer when updates are prevented by genl mutex : The pointer to read, prior to dereferencing

Return the value of the specified RCU-protected pointer, but omit both the smp_read_barrier_depends() and the ACCESS_ONCE(), because caller holds genl mutex.

Definition at line 32 of file genetlink.h.

#define MODULE_ALIAS_GENL_FAMILY (   family)    MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family)

Definition at line 35 of file genetlink.h.

#define rcu_dereference_genl (   p)    rcu_dereference_check(p, lockdep_genl_is_held())

rcu_dereference_genl - rcu_dereference with debug checking : The pointer to read, prior to dereferencing

Do an rcu_dereference(p), but check caller either holds rcu_read_lock() or genl mutex. Note : Please prefer genl_dereference() or rcu_dereference()

Definition at line 21 of file genetlink.h.

Function Documentation

void genl_lock ( void  )

Definition at line 24 of file genetlink.c.

void genl_unlock ( void  )

Definition at line 30 of file genetlink.c.