Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
spinlock.h File Reference
#include <linux/kernel.h>
#include <asm/current.h>

Go to the source code of this file.

Macros

#define arch_spin_lock_flags(lock, flags)   arch_spin_lock(lock)
 
#define arch_spin_is_locked(x)   ((x)->lock != 0)
 
#define arch_spin_unlock_wait(x)   do { cpu_relax(); } while ((x)->lock)
 
#define arch_read_lock_flags(lock, flags)   arch_read_lock(lock)
 
#define arch_write_lock_flags(lock, flags)   arch_write_lock(lock)
 
#define arch_spin_relax(lock)   cpu_relax()
 
#define arch_read_relax(lock)   cpu_relax()
 
#define arch_write_relax(lock)   cpu_relax()
 

Macro Definition Documentation

#define arch_read_lock_flags (   lock,
  flags 
)    arch_read_lock(lock)

Definition at line 168 of file spinlock.h.

#define arch_read_relax (   lock)    cpu_relax()

Definition at line 172 of file spinlock.h.

#define arch_spin_is_locked (   x)    ((x)->lock != 0)

Definition at line 15 of file spinlock.h.

#define arch_spin_lock_flags (   lock,
  flags 
)    arch_spin_lock(lock)

Definition at line 14 of file spinlock.h.

#define arch_spin_relax (   lock)    cpu_relax()

Definition at line 171 of file spinlock.h.

#define arch_spin_unlock_wait (   x)    do { cpu_relax(); } while ((x)->lock)

Definition at line 16 of file spinlock.h.

#define arch_write_lock_flags (   lock,
  flags 
)    arch_write_lock(lock)

Definition at line 169 of file spinlock.h.

#define arch_write_relax (   lock)    cpu_relax()

Definition at line 173 of file spinlock.h.