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/compiler.h>
#include <asm/barrier.h>
#include <asm/war.h>

Go to the source code of this file.

Macros

#define arch_spin_lock_flags(lock, flags)   arch_spin_lock(lock)
 
#define arch_spin_unlock_wait(x)   while (arch_spin_is_locked(x)) { cpu_relax(); }
 
#define arch_spin_is_contended   arch_spin_is_contended
 
#define arch_read_can_lock(rw)   ((rw)->lock >= 0)
 
#define arch_write_can_lock(rw)   (!(rw)->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_can_lock (   rw)    ((rw)->lock >= 0)

Definition at line 219 of file spinlock.h.

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

Definition at line 451 of file spinlock.h.

#define arch_read_relax (   lock)    cpu_relax()

Definition at line 455 of file spinlock.h.

#define arch_spin_is_contended   arch_spin_is_contended

Definition at line 54 of file spinlock.h.

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

Definition at line 44 of file spinlock.h.

#define arch_spin_relax (   lock)    cpu_relax()

Definition at line 454 of file spinlock.h.

#define arch_spin_unlock_wait (   x)    while (arch_spin_is_locked(x)) { cpu_relax(); }

Definition at line 45 of file spinlock.h.

#define arch_write_can_lock (   rw)    (!(rw)->lock)

Definition at line 225 of file spinlock.h.

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

Definition at line 452 of file spinlock.h.

#define arch_write_relax (   lock)    cpu_relax()

Definition at line 456 of file spinlock.h.