/linux-master/include/linux/ |
H A D | rwbase_rt.h | 5 #include <linux/rtmutex.h> 13 struct rt_mutex_base rtmutex; member in struct:rwbase_rt 19 .rtmutex = __RT_MUTEX_BASE_INITIALIZER(name.rtmutex), \ 24 rt_mutex_base_init(&(rwbase)->rtmutex); \
|
H A D | mutex_types.h | 60 #include <linux/rtmutex.h> 63 struct rt_mutex_base rtmutex; member in struct:mutex
|
H A D | rtmutex.h | 37 * rt_mutex_base_is_locked - is the rtmutex locked 58 struct rt_mutex_base rtmutex; member in struct:rt_mutex 91 .rtmutex = __RT_MUTEX_BASE_INITIALIZER(mutexname.rtmutex), \
|
H A D | spinlock_types.h | 48 #include <linux/rtmutex.h>
|
H A D | mutex.h | 94 .rtmutex = __RT_MUTEX_BASE_INITIALIZER(mutexname.rtmutex) \ 104 #define mutex_is_locked(l) rt_mutex_base_is_locked(&(l)->rtmutex) 108 rt_mutex_base_init(&(mutex)->rtmutex); \
|
H A D | ww_mutex.h | 21 #include <linux/rtmutex.h> 35 #define ww_mutex_base_is_locked(b) rt_mutex_base_is_locked(&(b)->rtmutex)
|
H A D | i2c.h | 20 #include <linux/rtmutex.h>
|
/linux-master/kernel/locking/ |
H A D | rwbase_rt.c | 7 * 1) Lock rtmutex 15 * 3) Unlock rtmutex, to release blocked readers 22 * 5) unlock rtmutex, goto 1) 30 * RT tasks (think mmap_sem), are subject to the rtmutex priority/DL 35 * to block on the rtmutex, but the rtmutex would have to be proxy locked 71 struct rt_mutex_base *rtm = &rwb->rtmutex; 78 * Call into the slow lock path with the rtmutex->wait_lock 116 * On success the rtmutex is held, so there can't be a writer 118 * rtmutex agai [all...] |
H A D | ww_rt_mutex.c | 3 * rtmutex API 10 #include "rtmutex.c" 27 if (__rt_mutex_trylock(&rtm->rtmutex)) { 65 if (likely(rt_mutex_try_acquire(&rtm->rtmutex))) { 71 ret = rt_mutex_slowlock(&rtm->rtmutex, ww_ctx, state); 99 __rt_mutex_unlock(&rtm->rtmutex);
|
H A D | rtmutex_api.c | 3 * rtmutex API 9 #include "rtmutex.c" 31 ret = __rt_mutex_lock(&lock->rtmutex, state); 125 ret = __rt_mutex_trylock(&lock->rtmutex); 141 __rt_mutex_unlock(&lock->rtmutex); 217 __rt_mutex_base_init(&lock->rtmutex); 231 * Special API call for PI-futex support. This initializes the rtmutex and 232 * assigns it to @proxy_owner. Concurrent operations on the rtmutex are not 233 * possible at this point because the pi_state which contains the rtmutex 244 * and rtmutex base [all...] |
H A D | ww_mutex.h | 96 struct rb_node *n = rb_first(&lock->rtmutex.waiters.rb_root); 123 struct rb_node *n = rb_last(&lock->rtmutex.waiters.rb_root); 138 return rt_mutex_owner(&lock->rtmutex); 144 return rt_mutex_has_waiters(&lock->rtmutex); 149 raw_spin_lock(&lock->rtmutex.wait_lock); 154 raw_spin_unlock(&lock->rtmutex.wait_lock); 159 lockdep_assert_held(&lock->rtmutex.wait_lock);
|
H A D | rtmutex_common.h | 17 #include <linux/rtmutex.h>
|
H A D | rtmutex.c | 315 * acquire a non-contended rtmutex. 627 * [L] rtmutex->wait_lock held 631 * rtmutex->wait_lock 835 * which is the reverse lock order versus the other rtmutex 1247 rtm = container_of(lock, struct rt_mutex, rtmutex); 1452 /* Relock the rtmutex and try again */ 1525 * - rtmutex, futex on all kernels 1605 struct rt_mutex *rtm = container_of(lock, struct rt_mutex, rtmutex); 1662 WARN(1, "rtmutex deadlock detected\n"); 1671 * @lock: The rtmutex t [all...] |
H A D | locktorture.c | 25 #include <linux/rtmutex.h> 195 * the task tries to take the lock, the rtmutex it will account 1222 if (str_has_prefix(torture_type, "rtmutex"))
|
/linux-master/lib/ |
H A D | test_lockup.c | 493 offsetof(rwlock_t, rwbase.rtmutex.wait_lock.magic), 496 offsetof(struct mutex, rtmutex.wait_lock.magic), 499 offsetof(struct rw_semaphore, rwbase.rtmutex.wait_lock.magic),
|
H A D | locking-selftest.c | 26 #include <linux/rtmutex.h> 323 #include "locking-selftest-rtmutex.h" 549 #include "locking-selftest-rtmutex.h" 582 #include "locking-selftest-rtmutex.h" 615 #include "locking-selftest-rtmutex.h" 649 #include "locking-selftest-rtmutex.h" 682 #include "locking-selftest-rtmutex.h" 715 #include "locking-selftest-rtmutex.h" 753 #include "locking-selftest-rtmutex.h" 784 #include "locking-selftest-rtmutex [all...] |
/linux-master/kernel/futex/ |
H A D | futex.h | 6 #include <linux/rtmutex.h>
|
/linux-master/kernel/rcu/ |
H A D | tree.h | 15 #include <linux/rtmutex.h>
|
H A D | tree_plugin.h | 537 drop_boost_mutex = rt_mutex_owner(&rnp->boost_mtx.rtmutex) == t; 571 rt_mutex_futex_unlock(&rnp->boost_mtx.rtmutex); 1096 rt_mutex_init_proxy_locked(&rnp->boost_mtx.rtmutex, t);
|
/linux-master/drivers/android/ |
H A D | binder_alloc.c | 14 #include <linux/rtmutex.h>
|
/linux-master/kernel/ |
H A D | sysctl.c | 81 #include <linux/rtmutex.h>
|
H A D | fork.c | 27 #include <linux/rtmutex.h>
|