Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 8 of 8) sorted by relevance

/lib/
Dtest_hmm.c70 struct mutex mutex; member
91 struct mutex devmem_lock; /* protects the above */
131 mutex_init(&dmirror->mutex); in dmirror_fops_open()
227 mutex_lock(&dmirror->mutex); in dmirror_interval_invalidate()
228 else if (!mutex_trylock(&dmirror->mutex)) in dmirror_interval_invalidate()
234 mutex_unlock(&dmirror->mutex); in dmirror_interval_invalidate()
266 mutex_lock(&dmirror->mutex); in dmirror_range_fault()
269 mutex_unlock(&dmirror->mutex); in dmirror_range_fault()
277 mutex_unlock(&dmirror->mutex); in dmirror_range_fault()
361 mutex_lock(&dmirror->mutex); in dmirror_read()
[all …]
Dtest_lockup.c179 mutex_lock((struct mutex *)lock_mutex_ptr); in test_lock()
297 mutex_unlock((struct mutex *)lock_mutex_ptr); in test_unlock()
483 test_kernel_ptr(lock_mutex_ptr, sizeof(struct mutex)) || in test_lockup_init()
496 offsetof(struct mutex, rtmutex.wait_lock.magic), in test_lockup_init()
510 offsetof(struct mutex, wait_lock.magic), in test_lockup_init()
Drefcount.c113 bool refcount_dec_and_mutex_lock(refcount_t *r, struct mutex *lock) in refcount_dec_and_mutex_lock()
Drhashtable.c49 return (debug_locks) ? lockdep_is_held(&ht->mutex) : 1; in lockdep_rht_mutex_is_held()
414 mutex_lock(&ht->mutex); in rht_deferred_worker()
433 mutex_unlock(&ht->mutex); in rht_deferred_worker()
1026 mutex_init(&ht->mutex); in rhashtable_init()
1139 mutex_lock(&ht->mutex); in rhashtable_free_and_destroy()
1164 mutex_unlock(&ht->mutex); in rhashtable_free_and_destroy()
Dtest_kmod.c134 struct mutex config_mutex;
135 struct mutex trigger_mutex;
136 struct mutex thread_mutex;
674 static ssize_t config_test_show_str(struct mutex *config_mutex, in config_test_show_str()
Dtest_rhashtable.c495 mutex_lock(&ht->mutex); in print_ht()
529 mutex_unlock(&ht->mutex); in print_ht()
Dlocking-selftest.c151 struct mutex *mutex, struct rw_semaphore *rwsem)\
155 mutex_init(mutex); \
2515 static void mutex_exit(struct mutex **lock) in mutex_exit()
2521 struct mutex *mutex_guard_##name __guard(mutex_exit) = &(lock); \
DKconfig.debug1346 This allows rt mutex semantics violations and rt mutex related
1363 This feature allows mutex semantics violations to be detected and
1367 bool "Wait/wound mutex debugging: Slowpath testing"
1374 This feature enables slowpath testing for w/w mutex users by
1376 the full mutex checks enabled with (CONFIG_PROVE_LOCKING) this
1377 will test all possible w/w mutex interface abuse with the
1400 mutex or rwsem) is incorrectly freed by the kernel, via any of the
1502 tristate "Wait/wound mutex selftests"