Go to the documentation of this file. 1 #ifndef __LINUX_BIT_SPINLOCK_H
2 #define __LINUX_BIT_SPINLOCK_H
4 #include <linux/kernel.h>
15 static inline void bit_spin_lock(
int bitnum,
unsigned long *
addr)
25 #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
40 static inline int bit_spin_trylock(
int bitnum,
unsigned long *addr)
43 #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
56 static inline void bit_spin_unlock(
int bitnum,
unsigned long *addr)
58 #ifdef CONFIG_DEBUG_SPINLOCK
61 #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
73 static inline void __bit_spin_unlock(
int bitnum,
unsigned long *addr)
75 #ifdef CONFIG_DEBUG_SPINLOCK
78 #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
88 static inline int bit_spin_is_locked(
int bitnum,
unsigned long *addr)
90 #if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_SPINLOCK)
92 #elif defined CONFIG_PREEMPT_COUNT