Searched refs:ww_mutex (Results 1 – 18 of 18) sorted by relevance
/linux-6.6.21/include/linux/ |
D | ww_mutex.h | 47 struct ww_mutex { struct 98 static inline void ww_mutex_init(struct ww_mutex *lock, in ww_mutex_init() 234 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx); 266 extern int __must_check ww_mutex_lock_interruptible(struct ww_mutex *lock, 293 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow() 329 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock, in ww_mutex_lock_slow_interruptible() 338 extern void ww_mutex_unlock(struct ww_mutex *lock); 340 extern int __must_check ww_mutex_trylock(struct ww_mutex *lock, 351 static inline void ww_mutex_destroy(struct ww_mutex *lock) in ww_mutex_destroy() 364 static inline bool ww_mutex_is_locked(struct ww_mutex *lock) in ww_mutex_is_locked()
|
D | dma-resv.h | 166 struct ww_mutex lock;
|
/linux-6.6.21/kernel/locking/ |
D | ww_rt_mutex.c | 12 int ww_mutex_trylock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock() 38 __ww_rt_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx, in __ww_rt_mutex_lock() 79 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock() 86 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_interruptible() 92 void __sched ww_mutex_unlock(struct ww_mutex *lock) in ww_mutex_unlock()
|
D | ww_mutex.h | 181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired() 378 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_set_context_fastpath() 417 struct ww_mutex *ww; in __ww_mutex_kill() 419 ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_kill() 444 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_check_kill() 545 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_add_waiter() 559 static inline void __ww_mutex_unlock(struct ww_mutex *lock) in __ww_mutex_unlock()
|
D | mutex.c | 307 struct ww_mutex *ww; in ww_mutex_spin_on_owner() 309 ww = container_of(lock, struct ww_mutex, base); in ww_mutex_spin_on_owner() 558 void __sched ww_mutex_unlock(struct ww_mutex *lock) in ww_mutex_unlock() 574 struct ww_mutex *ww; in __mutex_lock_common() 584 ww = container_of(lock, struct ww_mutex, base); in __mutex_lock_common() 770 int ww_mutex_trylock(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock() 840 ww_mutex_deadlock_injection(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_deadlock_injection() 866 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock() 881 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_interruptible() 1051 __ww_mutex_lock_slowpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in __ww_mutex_lock_slowpath() [all …]
|
D | test-ww_mutex.c | 30 struct ww_mutex mutex; 123 struct ww_mutex mutex; in test_aa() 178 struct ww_mutex a_mutex; 179 struct ww_mutex b_mutex; 279 struct ww_mutex a_mutex; 280 struct ww_mutex *b_mutex; 384 struct ww_mutex *locks; 422 struct ww_mutex *locks = stress->locks; in stress_inorder_work() 473 struct ww_mutex *lock; 539 struct ww_mutex *lock = stress->locks + get_random_u32_below(nlocks); in stress_one_work() [all …]
|
D | Makefile | 33 obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
|
D | rtmutex.c | 47 static inline void ww_mutex_lock_acquired(struct ww_mutex *lock, in ww_mutex_lock_acquired() 61 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base) 1664 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock()
|
D | locktorture.c | 503 static struct ww_mutex torture_ww_mutex_0, torture_ww_mutex_1, torture_ww_mutex_2; 532 struct ww_mutex *lock; in torture_ww_mutex_lock()
|
/linux-6.6.21/tools/testing/selftests/locking/ |
D | ww_mutex.sh | 8 if ! /sbin/modprobe -q -n test-ww_mutex; then 13 if /sbin/modprobe -q test-ww_mutex; then 14 /sbin/modprobe -q -r test-ww_mutex
|
D | Makefile | 8 TEST_PROGS := ww_mutex.sh
|
/linux-6.6.21/Documentation/locking/ |
D | ww-mutex-design.rst | 125 struct ww_mutex lock; 236 e.g. when adjusting edges in a graph where each node has its own ww_mutex lock, 270 struct ww_mutex ww_mutex; 284 ww_mutex_unlock(entry->ww_mutex) 300 ret = ww_mutex_lock(obj->ww_mutex, ctx); 338 ww_mutex currently encapsulates a struct mutex, this means no extra overhead for
|
D | locktypes.rst | 43 - ww_mutex
|
/linux-6.6.21/include/drm/ |
D | drm_modeset_lock.h | 89 struct ww_mutex mutex;
|
/linux-6.6.21/include/linux/regulator/ |
D | driver.h | 628 struct ww_mutex mutex; /* consumer lock */
|
/linux-6.6.21/Documentation/gpu/ |
D | i915.rst | 362 dma_resv ww_mutex to serialize against other operations. 379 * -EDEADLK handling with ww_mutex
|
/linux-6.6.21/lib/ |
D | locking-selftest.c | 65 static struct ww_mutex o, o2, o3;
|
D | Kconfig.debug | 1542 on the struct ww_mutex locking API.
|