Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 10 of 10) sorted by relevance

/kernel/locking/
Dspinlock_debug.c27 lock->magic = SPINLOCK_MAGIC; in __raw_spin_lock_init()
45 lock->magic = RWLOCK_MAGIC; in __rwlock_init()
63 lock, READ_ONCE(lock->magic), in spin_dump()
83 SPIN_BUG_ON(READ_ONCE(lock->magic) != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_lock_before()
97 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_unlock()
157 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_lock()
176 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_unlock()
182 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_lock_before()
196 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_unlock()
Dmutex-debug.c33 waiter->magic = waiter; in debug_mutex_lock_common()
41 DEBUG_LOCKS_WARN_ON(waiter->magic != waiter); in debug_mutex_wake_waiter()
75 DEBUG_LOCKS_WARN_ON(lock->magic != lock); in debug_mutex_unlock()
90 lock->magic = lock; in debug_mutex_init()
104 lock->magic = NULL; in mutex_destroy()
Drwsem.c110 (unsigned long) sem->magic, \
335 sem->magic = sem; in __init_rwsem()
1367 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __down_read_trylock()
1415 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __down_write_trylock()
1433 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __up_read()
1453 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __up_write()
Dmutex.c938 DEBUG_LOCKS_WARN_ON(lock->magic != lock); in __mutex_lock_common()
1415 DEBUG_LOCKS_WARN_ON(lock->magic != lock); in mutex_trylock()
Drtmutex.c1661 lock->magic = NULL; in rt_mutex_destroy()
/kernel/
Dcred.c45 .magic = CRED_MAGIC,
100 if (cred->magic != CRED_MAGIC_DEAD || in put_cred_rcu()
105 cred, cred->magic, cred->put_addr, in put_cred_rcu()
141 cred->magic = CRED_MAGIC_DEAD; in __put_cred()
223 new->magic = CRED_MAGIC; in cred_alloc_blank()
792 if (cred->magic != CRED_MAGIC) in creds_are_invalid()
810 cred->magic, cred->put_addr); in dump_invalid_creds()
Dscs.c227 unsigned long *magic = scs_magic(__scs_base(tsk)); in scs_corrupted() local
229 return READ_ONCE_NOCHECK(*magic) != SCS_END_MAGIC; in scs_corrupted()
/kernel/trace/
Dblktrace.c95 t->magic = BLK_IO_TRACE_MAGIC | BLK_IO_TRACE_VERSION; in trace_note()
276 t->magic = BLK_IO_TRACE_MAGIC | BLK_IO_TRACE_VERSION; in __blk_add_trace()
1504 .magic = BLK_IO_TRACE_MAGIC | BLK_IO_TRACE_VERSION, in blk_trace_synthesize_old_trace()
/kernel/bpf/
Dbtf.c806 __btf_verifier_log(log, "magic: 0x%x\n", hdr->magic); in btf_verifier_log_hdr()
3259 if (hdr->magic != BTF_MAGIC) { in btf_parse_hdr()
/kernel/cgroup/
Dcgroup.c2098 ctx->kfc.magic = CGROUP2_SUPER_MAGIC; in cgroup_do_get_tree()
2100 ctx->kfc.magic = CGROUP_SUPER_MAGIC; in cgroup_do_get_tree()