Lines Matching refs:lock
29 struct rt_mutex *lock; member
41 static inline int rt_mutex_has_waiters(struct rt_mutex *lock) in rt_mutex_has_waiters() argument
43 return !RB_EMPTY_ROOT(&lock->waiters); in rt_mutex_has_waiters()
47 rt_mutex_top_waiter(struct rt_mutex *lock) in rt_mutex_top_waiter() argument
51 w = rb_entry(lock->waiters_leftmost, struct rt_mutex_waiter, in rt_mutex_top_waiter()
53 BUG_ON(w->lock != lock); in rt_mutex_top_waiter()
76 static inline struct task_struct *rt_mutex_owner(struct rt_mutex *lock) in rt_mutex_owner() argument
79 ((unsigned long)lock->owner & ~RT_MUTEX_OWNER_MASKALL); in rt_mutex_owner()
100 extern struct task_struct *rt_mutex_next_owner(struct rt_mutex *lock);
101 extern void rt_mutex_init_proxy_locked(struct rt_mutex *lock,
103 extern void rt_mutex_proxy_unlock(struct rt_mutex *lock,
105 extern int rt_mutex_start_proxy_lock(struct rt_mutex *lock,
108 extern int rt_mutex_finish_proxy_lock(struct rt_mutex *lock,
112 extern bool rt_mutex_futex_unlock(struct rt_mutex *lock,