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

Go to the source code of this file.

Data Structures

struct  raw_spinlock
 
struct  spinlock
 

Macros

#define SPINLOCK_MAGIC   0xdead4ead
 
#define SPINLOCK_OWNER_INIT   ((void *)-1L)
 
#define SPIN_DEP_MAP_INIT(lockname)
 
#define SPIN_DEBUG_INIT(lockname)
 
#define __RAW_SPIN_LOCK_INITIALIZER(lockname)
 
#define __RAW_SPIN_LOCK_UNLOCKED(lockname)   (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)
 
#define DEFINE_RAW_SPINLOCK(x)   raw_spinlock_t x = __RAW_SPIN_LOCK_UNLOCKED(x)
 
#define __SPIN_LOCK_INITIALIZER(lockname)   { { .rlock = __RAW_SPIN_LOCK_INITIALIZER(lockname) } }
 
#define __SPIN_LOCK_UNLOCKED(lockname)   (spinlock_t ) __SPIN_LOCK_INITIALIZER(lockname)
 
#define DEFINE_SPINLOCK(x)   spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
 

Typedefs

typedef struct raw_spinlock raw_spinlock_t
 
typedef struct spinlock spinlock_t
 

Macro Definition Documentation

#define __RAW_SPIN_LOCK_INITIALIZER (   lockname)
Value:
{ \
SPIN_DEBUG_INIT(lockname) \
SPIN_DEP_MAP_INIT(lockname) }

Definition at line 53 of file spinlock_types.h.

#define __RAW_SPIN_LOCK_UNLOCKED (   lockname)    (raw_spinlock_t) __RAW_SPIN_LOCK_INITIALIZER(lockname)

Definition at line 59 of file spinlock_types.h.

#define __SPIN_LOCK_INITIALIZER (   lockname)    { { .rlock = __RAW_SPIN_LOCK_INITIALIZER(lockname) } }

Definition at line 78 of file spinlock_types.h.

#define __SPIN_LOCK_UNLOCKED (   lockname)    (spinlock_t ) __SPIN_LOCK_INITIALIZER(lockname)

Definition at line 81 of file spinlock_types.h.

#define DEFINE_RAW_SPINLOCK (   x)    raw_spinlock_t x = __RAW_SPIN_LOCK_UNLOCKED(x)

Definition at line 62 of file spinlock_types.h.

#define DEFINE_SPINLOCK (   x )    spinlock_t x = __SPIN_LOCK_UNLOCKED(x)

Definition at line 84 of file spinlock_types.h.

#define SPIN_DEBUG_INIT (   lockname)

Definition at line 50 of file spinlock_types.h.

#define SPIN_DEP_MAP_INIT (   lockname)

Definition at line 41 of file spinlock_types.h.

#define SPINLOCK_MAGIC   0xdead4ead

Definition at line 34 of file spinlock_types.h.

#define SPINLOCK_OWNER_INIT   ((void *)-1L)

Definition at line 36 of file spinlock_types.h.

Typedef Documentation