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/atomic.h>
#include <asm/rwlock.h>
#include <asm/page.h>

Go to the source code of this file.

Macros

#define arch_spin_is_locked(x)   (*(volatile signed char *)(&(x)->slock) != 0)
 
#define arch_spin_unlock_wait(x)   do { barrier(); } while (arch_spin_is_locked(x))
 

Macro Definition Documentation

#define arch_spin_is_locked (   x)    (*(volatile signed char *)(&(x)->slock) != 0)

Definition at line 25 of file spinlock.h.

#define arch_spin_unlock_wait (   x)    do { barrier(); } while (arch_spin_is_locked(x))

Definition at line 26 of file spinlock.h.