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

Go to the source code of this file.

Data Structures

struct  mrlock_t
 

Macros

#define mrinit(mrp, name)   do { init_rwsem(&(mrp)->mr_lock); } while (0)
 
#define mrlock_init(mrp, t, n, s)   mrinit(mrp, n)
 
#define mrfree(mrp)   do { } while (0)
 

Macro Definition Documentation

#define mrfree (   mrp)    do { } while (0)

Definition at line 39 of file mrlock.h.

#define mrinit (   mrp,
  name 
)    do { init_rwsem(&(mrp)->mr_lock); } while (0)

Definition at line 34 of file mrlock.h.

#define mrlock_init (   mrp,
  t,
  n,
  s 
)    mrinit(mrp, n)

Definition at line 38 of file mrlock.h.