Searched refs:magic (Results 1 – 11 of 11) sorted by relevance
/kernel/bpf/preload/iterators/ |
D | iterators.c | 42 int err, magic; in main() local 53 read(from_kernel, &magic, sizeof(magic)); in main() 54 if (magic != BPF_PRELOAD_START) { in main() 55 printf("bad start magic %d\n", magic); in main() 85 read(from_kernel, &magic, sizeof(magic)); in main() 86 if (magic != BPF_PRELOAD_END) { in main() 87 printf("bad final magic %d\n", magic); in main()
|
/kernel/bpf/preload/ |
D | bpf_preload_kern.c | 25 int magic = BPF_PRELOAD_START; in preload() local 36 &magic, sizeof(magic), &pos); in preload() 37 if (n != sizeof(magic)) in preload() 53 int magic = BPF_PRELOAD_END; in finish() local 60 &magic, sizeof(magic), &pos); in finish() 61 if (n != sizeof(magic)) in finish()
|
/kernel/locking/ |
D | spinlock_debug.c | 27 lock->magic = SPINLOCK_MAGIC; in __raw_spin_lock_init() 46 lock->magic = RWLOCK_MAGIC; in __rwlock_init() 65 lock, READ_ONCE(lock->magic), in spin_dump() 85 SPIN_BUG_ON(READ_ONCE(lock->magic) != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_lock_before() 99 SPIN_BUG_ON(lock->magic != SPINLOCK_MAGIC, lock, "bad magic"); in debug_spin_unlock() 160 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_lock() 179 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in do_raw_read_unlock() 185 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_lock_before() 199 RWLOCK_BUG_ON(lock->magic != RWLOCK_MAGIC, lock, "bad magic"); in debug_write_unlock()
|
D | mutex-debug.c | 31 waiter->magic = waiter; in debug_mutex_lock_common() 40 DEBUG_LOCKS_WARN_ON(waiter->magic != waiter); in debug_mutex_wake_waiter() 74 DEBUG_LOCKS_WARN_ON(lock->magic != lock); in debug_mutex_unlock() 89 lock->magic = lock; in debug_mutex_init() 103 lock->magic = NULL; in mutex_destroy()
|
D | rwsem.c | 74 (unsigned long) sem->magic, \ 328 sem->magic = sem; in __init_rwsem() 1318 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __down_read_trylock() 1360 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __down_write_trylock() 1371 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __up_read() 1394 DEBUG_RWSEMS_WARN_ON(sem->magic != sem, sem); in __up_write()
|
D | mutex.h | 19 void *magic; member
|
D | mutex.c | 596 MUTEX_WARN_ON(lock->magic != lock); in __mutex_lock_common() 1056 MUTEX_WARN_ON(lock->magic != lock); in mutex_trylock()
|
/kernel/ |
D | cred.c | 47 .magic = CRED_MAGIC, 103 if (cred->magic != CRED_MAGIC_DEAD || in put_cred_rcu() 108 cred, cred->magic, cred->put_addr, in put_cred_rcu() 146 cred->magic = CRED_MAGIC_DEAD; in __put_cred() 229 new->magic = CRED_MAGIC; in cred_alloc_blank() 833 if (cred->magic != CRED_MAGIC) in creds_are_invalid() 851 cred->magic, cred->put_addr); in dump_invalid_creds()
|
/kernel/trace/ |
D | blktrace.c | 97 t->magic = BLK_IO_TRACE_MAGIC | BLK_IO_TRACE_VERSION; in trace_note() 279 t->magic = BLK_IO_TRACE_MAGIC | BLK_IO_TRACE_VERSION; in __blk_add_trace() 1530 .magic = BLK_IO_TRACE_MAGIC | BLK_IO_TRACE_VERSION, in blk_trace_synthesize_old_trace()
|
/kernel/cgroup/ |
D | cgroup.c | 2116 ctx->kfc.magic = CGROUP2_SUPER_MAGIC; in cgroup_do_get_tree() 2118 ctx->kfc.magic = CGROUP_SUPER_MAGIC; in cgroup_do_get_tree()
|
/kernel/bpf/ |
D | btf.c | 1430 __btf_verifier_log(log, "magic: 0x%x\n", hdr->magic); in btf_verifier_log_hdr() 4298 if (hdr->magic != BTF_MAGIC) { in btf_parse_hdr()
|