#ifndef __LINUX_SPINLOCK_API_SMP_H
#define __LINUX_SPINLOCK_API_SMP_H
#ifndef __LINUX_INSIDE_SPINLOCK_H
# error "please don't include this file directly"
#endif
int in_lock_functions(unsigned long addr);
#define assert_raw_spin_locked(x) …
void __lockfunc _raw_spin_lock(raw_spinlock_t *lock) __acquires(…);
void __lockfunc _raw_spin_lock_nested(raw_spinlock_t *lock, int subclass)
__acquires(…);
void __lockfunc
_raw_spin_lock_nest_lock(raw_spinlock_t *lock, struct lockdep_map *map)
__acquires(…);
void __lockfunc _raw_spin_lock_bh(raw_spinlock_t *lock) __acquires(…);
void __lockfunc _raw_spin_lock_irq(raw_spinlock_t *lock)
__acquires(…);
unsigned long __lockfunc _raw_spin_lock_irqsave(raw_spinlock_t *lock)
__acquires(…);
unsigned long __lockfunc
_raw_spin_lock_irqsave_nested(raw_spinlock_t *lock, int subclass)
__acquires(…);
int __lockfunc _raw_spin_trylock(raw_spinlock_t *lock);
int __lockfunc _raw_spin_trylock_bh(raw_spinlock_t *lock);
void __lockfunc _raw_spin_unlock(raw_spinlock_t *lock) __releases(…);
void __lockfunc _raw_spin_unlock_bh(raw_spinlock_t *lock) __releases(…);
void __lockfunc _raw_spin_unlock_irq(raw_spinlock_t *lock) __releases(…);
void __lockfunc
_raw_spin_unlock_irqrestore(raw_spinlock_t *lock, unsigned long flags)
__releases(…);
#ifdef CONFIG_INLINE_SPIN_LOCK
#define _raw_spin_lock …
#endif
#ifdef CONFIG_INLINE_SPIN_LOCK_BH
#define _raw_spin_lock_bh …
#endif
#ifdef CONFIG_INLINE_SPIN_LOCK_IRQ
#define _raw_spin_lock_irq …
#endif
#ifdef CONFIG_INLINE_SPIN_LOCK_IRQSAVE
#define _raw_spin_lock_irqsave …
#endif
#ifdef CONFIG_INLINE_SPIN_TRYLOCK
#define _raw_spin_trylock …
#endif
#ifdef CONFIG_INLINE_SPIN_TRYLOCK_BH
#define _raw_spin_trylock_bh …
#endif
#ifndef CONFIG_UNINLINE_SPIN_UNLOCK
#define _raw_spin_unlock …
#endif
#ifdef CONFIG_INLINE_SPIN_UNLOCK_BH
#define _raw_spin_unlock_bh …
#endif
#ifdef CONFIG_INLINE_SPIN_UNLOCK_IRQ
#define _raw_spin_unlock_irq …
#endif
#ifdef CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE
#define _raw_spin_unlock_irqrestore …
#endif
static inline int __raw_spin_trylock(raw_spinlock_t *lock)
{ … }
#if !defined(CONFIG_GENERIC_LOCKBREAK) || defined(CONFIG_DEBUG_LOCK_ALLOC)
static inline unsigned long __raw_spin_lock_irqsave(raw_spinlock_t *lock)
{ … }
static inline void __raw_spin_lock_irq(raw_spinlock_t *lock)
{ … }
static inline void __raw_spin_lock_bh(raw_spinlock_t *lock)
{ … }
static inline void __raw_spin_lock(raw_spinlock_t *lock)
{ … }
#endif
static inline void __raw_spin_unlock(raw_spinlock_t *lock)
{ … }
static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock,
unsigned long flags)
{ … }
static inline void __raw_spin_unlock_irq(raw_spinlock_t *lock)
{ … }
static inline void __raw_spin_unlock_bh(raw_spinlock_t *lock)
{ … }
static inline int __raw_spin_trylock_bh(raw_spinlock_t *lock)
{ … }
#ifndef CONFIG_PREEMPT_RT
#include <linux/rwlock_api_smp.h>
#endif
#endif