Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mutex-debug.h File Reference

Go to the source code of this file.

Macros

#define spin_lock_mutex(lock, flags)
 
#define spin_unlock_mutex(lock, flags)
 

Functions

void debug_mutex_lock_common (struct mutex *lock, struct mutex_waiter *waiter)
 
void debug_mutex_wake_waiter (struct mutex *lock, struct mutex_waiter *waiter)
 
void debug_mutex_free_waiter (struct mutex_waiter *waiter)
 
void debug_mutex_add_waiter (struct mutex *lock, struct mutex_waiter *waiter, struct thread_info *ti)
 
void mutex_remove_waiter (struct mutex *lock, struct mutex_waiter *waiter, struct thread_info *ti)
 
void debug_mutex_unlock (struct mutex *lock)
 
void debug_mutex_init (struct mutex *lock, const char *name, struct lock_class_key *key)
 

Macro Definition Documentation

#define spin_lock_mutex (   lock,
  flags 
)
Value:
do { \
struct mutex *l = container_of(lock, struct mutex, wait_lock); \
local_irq_save(flags); \
arch_spin_lock(&(lock)->rlock.raw_lock);\
DEBUG_LOCKS_WARN_ON(l->magic != l); \
} while (0)

Definition at line 40 of file mutex-debug.h.

#define spin_unlock_mutex (   lock,
  flags 
)
Value:
do { \
arch_spin_unlock(&(lock)->rlock.raw_lock); \
local_irq_restore(flags); \
preempt_check_resched(); \
} while (0)

Definition at line 50 of file mutex-debug.h.

Function Documentation

void debug_mutex_add_waiter ( struct mutex lock,
struct mutex_waiter waiter,
struct thread_info ti 
)

Definition at line 51 of file mutex-debug.c.

void debug_mutex_free_waiter ( struct mutex_waiter waiter)

Definition at line 45 of file mutex-debug.c.

void debug_mutex_init ( struct mutex lock,
const char name,
struct lock_class_key key 
)

Definition at line 83 of file mutex-debug.c.

void debug_mutex_lock_common ( struct mutex lock,
struct mutex_waiter waiter 
)

Definition at line 30 of file mutex-debug.c.

void debug_mutex_unlock ( struct mutex lock)

Definition at line 72 of file mutex-debug.c.

void debug_mutex_wake_waiter ( struct mutex lock,
struct mutex_waiter waiter 
)

Definition at line 37 of file mutex-debug.c.

void mutex_remove_waiter ( struct mutex lock,
struct mutex_waiter waiter,
struct thread_info ti 
)

Definition at line 60 of file mutex-debug.c.