Searched refs:rt_mutex_cmpxchg (Results 1 – 2 of 2) sorted by relevance
/linux-4.1.27/kernel/locking/ |
D | rtmutex.c | 77 # define rt_mutex_cmpxchg(l,c,n) (cmpxchg(&l->owner, c, n) == c) macro 124 return rt_mutex_cmpxchg(lock, owner, NULL); in unlock_rt_mutex_safe() 128 # define rt_mutex_cmpxchg(l,c,n) (0) macro 1330 if (likely(rt_mutex_cmpxchg(lock, NULL, current))) { in rt_mutex_fastlock() 1346 likely(rt_mutex_cmpxchg(lock, NULL, current))) { in rt_mutex_timed_fastlock() 1357 if (likely(rt_mutex_cmpxchg(lock, NULL, current))) { in rt_mutex_fasttrylock() 1368 if (likely(rt_mutex_cmpxchg(lock, current, NULL))) in rt_mutex_fastunlock()
|
/linux-4.1.27/Documentation/locking/ |
D | rt-mutex-design.txt | 348 The macro rt_mutex_cmpxchg is used to try to lock and unlock mutexes. If 353 The use of rt_mutex_cmpxchg with the flags in the owner field help optimize
|