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

Go to the source code of this file.

Macros

#define arch_spin_is_locked(lock)   ((void)(lock), 0)
 
#define arch_spin_lock(lock)   do { (void)(lock); } while (0)
 
#define arch_spin_lock_flags(lock, flags)   do { (void)(lock); } while (0)
 
#define arch_spin_unlock(lock)   do { (void)(lock); } while (0)
 
#define arch_spin_trylock(lock)   ({ (void)(lock); 1; })
 
#define arch_spin_is_contended(lock)   (((void)(lock), 0))
 
#define arch_read_can_lock(lock)   (((void)(lock), 1))
 
#define arch_write_can_lock(lock)   (((void)(lock), 1))
 
#define arch_spin_unlock_wait(lock)   do { cpu_relax(); } while (arch_spin_is_locked(lock))
 

Macro Definition Documentation

#define arch_read_can_lock (   lock)    (((void)(lock), 1))

Definition at line 72 of file spinlock_up.h.

#define arch_spin_is_contended (   lock)    (((void)(lock), 0))

Definition at line 70 of file spinlock_up.h.

#define arch_spin_is_locked (   lock)    ((void)(lock), 0)

Definition at line 62 of file spinlock_up.h.

#define arch_spin_lock (   lock)    do { (void)(lock); } while (0)

Definition at line 64 of file spinlock_up.h.

#define arch_spin_lock_flags (   lock,
  flags 
)    do { (void)(lock); } while (0)

Definition at line 65 of file spinlock_up.h.

#define arch_spin_trylock (   lock)    ({ (void)(lock); 1; })

Definition at line 67 of file spinlock_up.h.

#define arch_spin_unlock (   lock)    do { (void)(lock); } while (0)

Definition at line 66 of file spinlock_up.h.

#define arch_spin_unlock_wait (   lock)    do { cpu_relax(); } while (arch_spin_is_locked(lock))

Definition at line 75 of file spinlock_up.h.

#define arch_write_can_lock (   lock)    (((void)(lock), 1))

Definition at line 73 of file spinlock_up.h.