#ifndef __LINUX_RT_MUTEX_H
#define __LINUX_RT_MUTEX_H
#include <linux/compiler.h>
#include <linux/linkage.h>
#include <linux/rbtree_types.h>
#include <linux/spinlock_types_raw.h>
extern int max_lock_depth;
struct rt_mutex_base { … };
#define __RT_MUTEX_BASE_INITIALIZER(rtbasename) …
static inline bool rt_mutex_base_is_locked(struct rt_mutex_base *lock)
{ … }
extern void rt_mutex_base_init(struct rt_mutex_base *rtb);
struct rt_mutex { … };
struct rt_mutex_waiter;
struct hrtimer_sleeper;
#ifdef CONFIG_DEBUG_RT_MUTEXES
extern void rt_mutex_debug_task_free(struct task_struct *tsk);
#else
static inline void rt_mutex_debug_task_free(struct task_struct *tsk) { }
#endif
#define rt_mutex_init(mutex) …
#ifdef CONFIG_DEBUG_LOCK_ALLOC
#define __DEP_MAP_RT_MUTEX_INITIALIZER(mutexname) …
#else
#define __DEP_MAP_RT_MUTEX_INITIALIZER …
#endif
#define __RT_MUTEX_INITIALIZER(mutexname) …
#define DEFINE_RT_MUTEX(mutexname) …
extern void __rt_mutex_init(struct rt_mutex *lock, const char *name, struct lock_class_key *key);
#ifdef CONFIG_DEBUG_LOCK_ALLOC
extern void rt_mutex_lock_nested(struct rt_mutex *lock, unsigned int subclass);
extern void _rt_mutex_lock_nest_lock(struct rt_mutex *lock, struct lockdep_map *nest_lock);
#define rt_mutex_lock(lock) …
#define rt_mutex_lock_nest_lock(lock, nest_lock) …
#else
extern void rt_mutex_lock(struct rt_mutex *lock);
#define rt_mutex_lock_nested …
#define rt_mutex_lock_nest_lock …
#endif
extern int rt_mutex_lock_interruptible(struct rt_mutex *lock);
extern int rt_mutex_lock_killable(struct rt_mutex *lock);
extern int rt_mutex_trylock(struct rt_mutex *lock);
extern void rt_mutex_unlock(struct rt_mutex *lock);
#endif