Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
spinlock_debug.c File Reference
#include <linux/spinlock.h>
#include <linux/nmi.h>
#include <linux/interrupt.h>
#include <linux/debug_locks.h>
#include <linux/delay.h>
#include <linux/export.h>

Go to the source code of this file.

Macros

#define SPIN_BUG_ON(cond, lock, msg)   if (unlikely(cond)) spin_bug(lock, msg)
 
#define RWLOCK_BUG_ON(cond, lock, msg)   if (unlikely(cond)) rwlock_bug(lock, msg)
 

Functions

void __raw_spin_lock_init (raw_spinlock_t *lock, const char *name, struct lock_class_key *key)
 
 EXPORT_SYMBOL (__raw_spin_lock_init)
 
void __rwlock_init (rwlock_t *lock, const char *name, struct lock_class_key *key)
 
 EXPORT_SYMBOL (__rwlock_init)
 
void do_raw_spin_lock (raw_spinlock_t *lock)
 
int do_raw_spin_trylock (raw_spinlock_t *lock)
 
void do_raw_spin_unlock (raw_spinlock_t *lock)
 
void do_raw_read_lock (rwlock_t *lock)
 
int do_raw_read_trylock (rwlock_t *lock)
 
void do_raw_read_unlock (rwlock_t *lock)
 
void do_raw_write_lock (rwlock_t *lock)
 
int do_raw_write_trylock (rwlock_t *lock)
 
void do_raw_write_unlock (rwlock_t *lock)
 

Macro Definition Documentation

#define RWLOCK_BUG_ON (   cond,
  lock,
  msg 
)    if (unlikely(cond)) rwlock_bug(lock, msg)

Definition at line 173 of file spinlock_debug.c.

#define SPIN_BUG_ON (   cond,
  lock,
  msg 
)    if (unlikely(cond)) spin_bug(lock, msg)

Definition at line 78 of file spinlock_debug.c.

Function Documentation

void __raw_spin_lock_init ( raw_spinlock_t lock,
const char name,
struct lock_class_key key 
)

Definition at line 16 of file spinlock_debug.c.

void __rwlock_init ( rwlock_t lock,
const char name,
struct lock_class_key key 
)

Definition at line 34 of file spinlock_debug.c.

void do_raw_read_lock ( rwlock_t lock)

Definition at line 201 of file spinlock_debug.c.

int do_raw_read_trylock ( rwlock_t lock)

Definition at line 207 of file spinlock_debug.c.

void do_raw_read_unlock ( rwlock_t lock)

Definition at line 220 of file spinlock_debug.c.

void do_raw_spin_lock ( raw_spinlock_t lock)

Definition at line 133 of file spinlock_debug.c.

int do_raw_spin_trylock ( raw_spinlock_t lock)

Definition at line 141 of file spinlock_debug.c.

void do_raw_spin_unlock ( raw_spinlock_t lock)

Definition at line 156 of file spinlock_debug.c.

void do_raw_write_lock ( rwlock_t lock)

Definition at line 276 of file spinlock_debug.c.

int do_raw_write_trylock ( rwlock_t lock)

Definition at line 283 of file spinlock_debug.c.

void do_raw_write_unlock ( rwlock_t lock)

Definition at line 298 of file spinlock_debug.c.

EXPORT_SYMBOL ( __raw_spin_lock_init  )
EXPORT_SYMBOL ( __rwlock_init  )