Home
last modified time | relevance | path

Searched refs:nest_lock (Results 1 – 14 of 14) sorted by relevance

/linux/include/linux/
H A Dmutex.h161 extern void _mutex_lock_nest_lock(struct mutex *lock, struct lockdep_map *nest_lock);
165 unsigned int subclass, struct lockdep_map *nest_lock);
173 #define mutex_lock_nest_lock(lock, nest_lock) \ argument
175 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
176 _mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
179 #define mutex_lock_killable_nest_lock(lock, nest_lock) \ argument
181 typecheck(struct lockdep_map *, &(nest_lock)->dep_map), \
182 _mutex_lock_killable(lock, 0, &(nest_lock)->dep_map) \
197 # define mutex_lock_killable_nest_lock(lock, nest_lock) mutex_lock_killable(lock) argument
198 # define mutex_lock_nest_lock(lock, nest_lock) mutex_lock(lock) argument
[all …]
H A Drtmutex.h112 extern void _rt_mutex_lock_nest_lock(struct rt_mutex *lock, struct lockdep_map *nest_lock);
114 #define rt_mutex_lock_nest_lock(lock, nest_lock) \ argument
116 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
117 _rt_mutex_lock_nest_lock(lock, &(nest_lock)->dep_map); \
123 #define rt_mutex_lock_nest_lock(lock, nest_lock) rt_mutex_lock(lock) argument
H A Dspinlock_rt.h36 extern void rt_spin_lock_nest_lock(spinlock_t *lock, struct lockdep_map *nest_lock) __acquires(lock…
51 # define __spin_lock_nest_lock(lock, nest_lock) \ argument
53 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
54 rt_spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \
78 #define spin_lock_nest_lock(lock, nest_lock) \ argument
79 __spin_lock_nest_lock(lock, nest_lock)
H A Drwsem.h284 extern void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest_lock);
286 # define down_write_nest_lock(sem, nest_lock) \ argument
288 typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
289 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
303 # define down_write_nest_lock(sem, nest_lock) down_write(sem) argument
H A Dspinlock.h223 # define raw_spin_lock_nest_lock(lock, nest_lock) \ argument
225 typecheck(struct lockdep_map *, &(nest_lock)->dep_map);\
226 _raw_spin_lock_nest_lock(lock, &(nest_lock)->dep_map); \
236 # define raw_spin_lock_nest_lock(lock, nest_lock) _raw_spin_lock(lock) argument
369 #define spin_lock_nest_lock(lock, nest_lock) \ argument
371 raw_spin_lock_nest_lock(spinlock_check(lock), nest_lock); \
H A Dlockdep_types.h224 struct lockdep_map *nest_lock; member
H A Dlockdep.h229 struct lockdep_map *nest_lock, unsigned long ip);
234 int read, int check, struct lockdep_map *nest_lock,
/linux/kernel/locking/
H A Drtmutex_api.c42 struct lockdep_map *nest_lock, in __rt_mutex_lock_common() argument
48 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, _RET_IP_); in __rt_mutex_lock_common()
74 void __sched _rt_mutex_lock_nest_lock(struct rt_mutex *lock, struct lockdep_map *nest_lock) in _rt_mutex_lock_nest_lock() argument
76 __rt_mutex_lock_common(lock, TASK_UNINTERRUPTIBLE, nest_lock, 0); in _rt_mutex_lock_nest_lock()
529 struct lockdep_map *nest_lock, in __mutex_lock_common() argument
535 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
552 struct lockdep_map *nest_lock) in _mutex_lock_nest_lock() argument
554 __mutex_lock_common(lock, TASK_UNINTERRUPTIBLE, 0, nest_lock, _RET_IP_); in _mutex_lock_nest_lock()
566 struct lockdep_map *nest_lock) in _mutex_lock_killable() argument
568 return __mutex_lock_common(lock, TASK_KILLABLE, subclass, nest_lock, _RET_IP_); in _mutex_lock_killable()
[all …]
H A Dww_rt_mutex.c41 struct lockdep_map __maybe_unused *nest_lock = NULL; in __ww_rt_mutex_lock() local
60 nest_lock = &ww_ctx->dep_map; in __ww_rt_mutex_lock()
63 mutex_acquire_nest(&rtm->dep_map, 0, 0, nest_lock, ip); in __ww_rt_mutex_lock()
H A Dmutex.c563 struct lockdep_map *nest_lock, unsigned long ip, in __mutex_lock_common() argument
593 nest_lock = &ww_ctx->dep_map; in __mutex_lock_common()
598 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
758 struct lockdep_map *nest_lock, unsigned long ip) in __mutex_lock() argument
760 return __mutex_lock_common(lock, state, subclass, nest_lock, ip, NULL, false); in __mutex_lock()
1103 int __sched _mutex_trylock_nest_lock(struct mutex *lock, struct lockdep_map *nest_lock) in _mutex_trylock_nest_lock() argument
1110 mutex_acquire_nest(&lock->dep_map, 0, 1, nest_lock, _RET_IP_); in _mutex_trylock_nest_lock()
H A Dspinlock_rt.c70 struct lockdep_map *nest_lock) in rt_spin_lock_nest_lock() argument
72 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in rt_spin_lock_nest_lock()
H A Dspinlock.c397 struct lockdep_map *nest_lock) in _raw_spin_lock_nest_lock() argument
400 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in _raw_spin_lock_nest_lock()
H A Dlockdep.c3067 if (prev->instance == next->nest_lock) in check_deadlock()
5053 pr_warn("%s\n", hlock->nest_lock->name); in print_lock_nested_lock_not_held()
5079 struct lockdep_map *nest_lock, unsigned long ip, in __lock_acquire() argument
5146 if (hlock->class_idx == class_idx && nest_lock) { in __lock_acquire()
5173 hlock->nest_lock = nest_lock; in __lock_acquire()
5227 if (nest_lock && !__lock_is_held(nest_lock, -1)) { in __lock_acquire()
5329 if (DEBUG_LOCKS_WARN_ON(!hlock->nest_lock)) in match_held_lock()
5390 hlock->nest_lock, hlock->acquire_ip, in reacquire_held_locks()
5827 struct lockdep_map *nest_lock, unsigned long ip) in lock_acquire() argument
5831 trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip); in lock_acquire()
[all …]
/linux/tools/testing/vma/
H A Dvma_internal.h124 #define down_write_nest_lock(sem, nest_lock) argument