Searched refs:ww_class (Results 1 – 5 of 5) sorted by relevance
/linux/include/linux/ |
H A D | ww_mutex.h | 38 struct ww_class { struct 51 struct ww_class *ww_class; member 63 struct ww_class *ww_class; member 85 #define __WW_CLASS_INITIALIZER(ww_class, _is_wait_die) \ argument 87 , .acquire_name = #ww_class "_acquire" \ 88 , .mutex_name = #ww_class "_mutex" \ 92 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 1) 95 struct ww_class classname = __WW_CLASS_INITIALIZER(classname, 0) 109 struct ww_class *ww_class) in ww_mutex_init() argument 111 ww_mutex_base_init(&lock->base, ww_class->mutex_name, &ww_class->mutex_key); in ww_mutex_init() [all …]
|
/linux/kernel/locking/ |
H A D | test-ww_mutex.c | 16 static DEFINE_WD_CLASS(ww_class); 64 ww_mutex_init(&mtx.mutex, &ww_class); in __test_mutex() 66 ww_acquire_init(&ctx, &ww_class); in __test_mutex() 130 ww_mutex_init(&mutex, &ww_class); in test_aa() 131 ww_acquire_init(&ctx, &ww_class); in test_aa() 194 ww_acquire_init_noinject(&ctx, &ww_class); in test_abba_work() 226 ww_mutex_init(&abba.a_mutex, &ww_class); in test_abba() 227 ww_mutex_init(&abba.b_mutex, &ww_class); in test_abba() 236 ww_acquire_init_noinject(&ctx, &ww_class); in test_abba() 294 ww_acquire_init_noinject(&ctx, &ww_class); in test_cycle_work() [all …]
|
H A D | ww_mutex.h | 215 DEBUG_LOCKS_WARN_ON(ww_ctx->ww_class != ww->ww_class); in ww_mutex_lock_acquired()
|
/linux/Documentation/locking/ |
H A D | ww-mutex-design.rst | 122 static DEFINE_WW_CLASS(ww_class); 147 ww_acquire_init(ctx, &ww_class); 191 ww_acquire_init(ctx, &ww_class); 274 static DEFINE_WW_CLASS(ww_class); 292 ww_acquire_init(ctx, &ww_class); 383 - Using a different ww_class for the mutex than for the ww_acquire_ctx.
|
/linux/lib/ |
H A D | locking-selftest.c | 1790 t.ww_class = NULL; in ww_test_diff_class()
|