aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/decodecode
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/decodecode')
0 files changed, 0 insertions, 0 deletions
com"> * Returns 1 if the mutex is locked, 0 if unlocked. */ static inline int rt_mutex_is_locked(struct rt_mutex *lock) { return lock->owner != NULL; } extern void __rt_mutex_init(struct rt_mutex *lock, const char *name); extern void rt_mutex_destroy(struct rt_mutex *lock); extern void rt_mutex_lock(struct rt_mutex *lock); extern int rt_mutex_lock_interruptible(struct rt_mutex *lock, int detect_deadlock); extern int rt_mutex_timed_lock(struct rt_mutex *lock, struct hrtimer_sleeper *timeout, int detect_deadlock); extern int rt_mutex_trylock(struct rt_mutex *lock); extern void rt_mutex_unlock(struct rt_mutex *lock); #ifdef CONFIG_DEBUG_RT_MUTEXES # define INIT_RT_MUTEX_DEBUG(tsk) \ .held_list_head = LIST_HEAD_INIT(tsk.held_list_head), \ .held_list_lock = SPIN_LOCK_UNLOCKED #else # define INIT_RT_MUTEX_DEBUG(tsk) #endif #ifdef CONFIG_RT_MUTEXES # define INIT_RT_MUTEXES(tsk) \ .pi_waiters = PLIST_HEAD_INIT(tsk.pi_waiters, tsk.pi_lock), \ INIT_RT_MUTEX_DEBUG(tsk) #else # define INIT_RT_MUTEXES(tsk) #endif #endif