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

Go to the source code of this file.

Macros

#define arch_spin_is_locked(lp)   ((lp)->lock != 0)
 
#define arch_spin_unlock_wait(lp)
 
#define arch_read_lock_flags(p, f)   arch_read_lock(p)
 
#define arch_write_lock_flags(p, f)   arch_write_lock(p)
 
#define arch_read_can_lock(rw)   (!((rw)->lock & 0x80000000UL))
 
#define arch_write_can_lock(rw)   (!(rw)->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 & 0x80000000UL))

Definition at line 216 of file spinlock_64.h.

#define arch_read_lock_flags (   p,
  f 
)    arch_read_lock(p)

Definition at line 213 of file spinlock_64.h.

#define arch_read_relax (   lock)    cpu_relax()

Definition at line 220 of file spinlock_64.h.

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

Definition at line 24 of file spinlock_64.h.

#define arch_spin_relax (   lock)    cpu_relax()

Definition at line 219 of file spinlock_64.h.

#define arch_spin_unlock_wait (   lp)
Value:
do { rmb(); \
} while((lp)->lock)

Definition at line 26 of file spinlock_64.h.

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

Definition at line 217 of file spinlock_64.h.

#define arch_write_lock_flags (   p,
  f 
)    arch_write_lock(p)

Definition at line 214 of file spinlock_64.h.

#define arch_write_relax (   lock)    cpu_relax()

Definition at line 221 of file spinlock_64.h.