/linux-6.6.21/arch/s390/lib/ |
D | spinlock.c | 75 int owner; in arch_load_niai4() local 80 : "=d" (owner) : "Q" (*lock) : "memory"); in arch_load_niai4() 81 return owner; in arch_load_niai4() 120 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local 161 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 162 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() 163 smp_yield_cpu(owner - 1); in arch_spin_lock_queued() 173 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 174 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() 175 smp_yield_cpu(owner - 1); in arch_spin_lock_queued() [all …]
|
/linux-6.6.21/fs/btrfs/ |
D | locking.h | 99 #define btrfs_might_wait_for_event(owner, lock) \ argument 101 rwsem_acquire(&owner->lock##_map, 0, 0, _THIS_IP_); \ 102 rwsem_release(&owner->lock##_map, _THIS_IP_); \ 116 #define btrfs_lockdep_acquire(owner, lock) \ argument 117 rwsem_acquire_read(&owner->lock##_map, 0, 0, _THIS_IP_) 123 #define btrfs_lockdep_release(owner, lock) \ argument 124 rwsem_release(&owner->lock##_map, _THIS_IP_) 130 #define btrfs_might_wait_for_state(owner, i) \ argument 132 rwsem_acquire(&owner->btrfs_state_change_map[i], 0, 0, _THIS_IP_); \ 133 rwsem_release(&owner->btrfs_state_change_map[i], _THIS_IP_); \ [all …]
|
/linux-6.6.21/kernel/locking/ |
D | mutex.c | 48 atomic_long_set(&lock->owner, 0); in __mutex_init() 81 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner() 84 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument 86 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task() 95 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument 97 return owner & MUTEX_FLAGS; in __owner_flags() 105 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_common() local 107 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common() 109 unsigned long flags = __owner_flags(owner); in __mutex_trylock_common() 110 unsigned long task = owner & ~MUTEX_FLAGS; in __mutex_trylock_common() [all …]
|
D | rtmutex.c | 93 rt_mutex_owner_encode(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_owner_encode() argument 95 unsigned long val = (unsigned long)owner; in rt_mutex_owner_encode() 104 rt_mutex_set_owner(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_set_owner() argument 110 xchg_acquire(&lock->owner, rt_mutex_owner_encode(lock, owner)); in rt_mutex_set_owner() 116 WRITE_ONCE(lock->owner, rt_mutex_owner_encode(lock, NULL)); in rt_mutex_clear_owner() 121 lock->owner = (struct task_struct *) in clear_rt_mutex_waiters() 122 ((unsigned long)lock->owner & ~RT_MUTEX_HAS_WAITERS); in clear_rt_mutex_waiters() 128 unsigned long owner, *p = (unsigned long *) &lock->owner; in fixup_rt_mutex_waiters() local 191 owner = READ_ONCE(*p); in fixup_rt_mutex_waiters() 192 if (owner & RT_MUTEX_HAS_WAITERS) { in fixup_rt_mutex_waiters() [all …]
|
D | spinlock_debug.c | 28 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init() 47 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init() 56 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local 58 if (owner == SPINLOCK_OWNER_INIT) in spin_dump() 59 owner = NULL; in spin_dump() 66 owner ? owner->comm : "<none>", in spin_dump() 67 owner ? task_pid_nr(owner) : -1, in spin_dump() 86 SPIN_BUG_ON(READ_ONCE(lock->owner) == current, lock, "recursion"); in debug_spin_lock_before() 94 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after() 101 SPIN_BUG_ON(lock->owner != current, lock, "wrong owner"); in debug_spin_unlock() [all …]
|
D | rwsem.c | 73 atomic_long_read(&(sem)->owner), (long)current, \ 143 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner() 149 atomic_long_set(&sem->owner, 0); in rwsem_clear_owner() 157 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags() 171 struct task_struct *owner) in __rwsem_set_reader_owned() argument 173 unsigned long val = (unsigned long)owner | RWSEM_READER_OWNED | in __rwsem_set_reader_owned() 174 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned() 176 atomic_long_set(&sem->owner, val); in __rwsem_set_reader_owned() 210 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned() 213 if (atomic_long_try_cmpxchg(&sem->owner, &val, in rwsem_clear_reader_owned() [all …]
|
/linux-6.6.21/drivers/media/mc/ |
D | mc-dev-allocator.c | 31 struct module *owner; member 63 struct module *owner) in __media_device_get() argument 74 if (owner != mdi->owner && !try_module_get(mdi->owner)) in __media_device_get() 88 mdi->owner = owner; in __media_device_get() 99 struct module *owner) in media_device_usb_allocate() argument 104 mdev = __media_device_get(&udev->dev, module_name, owner); in media_device_usb_allocate() 120 struct module *owner) in media_device_delete() argument 126 if (mdi->owner != owner) { in media_device_delete() 127 module_put(mdi->owner); in media_device_delete()
|
/linux-6.6.21/drivers/xen/ |
D | pci.c | 271 struct xen_device_domain_owner *owner; in find_device() local 273 list_for_each_entry(owner, &dev_domain_list, list) { in find_device() 274 if (owner->dev == dev) in find_device() 275 return owner; in find_device() 282 struct xen_device_domain_owner *owner; in xen_find_device_domain_owner() local 286 owner = find_device(dev); in xen_find_device_domain_owner() 287 if (owner) in xen_find_device_domain_owner() 288 domain = owner->domain; in xen_find_device_domain_owner() 296 struct xen_device_domain_owner *owner; in xen_register_device_domain_owner() local 298 owner = kzalloc(sizeof(struct xen_device_domain_owner), GFP_KERNEL); in xen_register_device_domain_owner() [all …]
|
/linux-6.6.21/rust/kernel/sync/ |
D | locked_by.rs | 76 owner: *const U, field 95 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new() 101 owner: owner.data.get(), in new() 118 pub fn access<'a>(&'a self, owner: &'a U) -> &'a T { in access() 123 if !ptr::eq(owner, self.owner) { in access() 144 pub fn access_mut<'a>(&'a self, owner: &'a mut U) -> &'a mut T { in access_mut() 149 if !ptr::eq(owner, self.owner) { in access_mut()
|
/linux-6.6.21/scripts/coccinelle/api/ |
D | platform_no_drv_owner.cocci | 2 /// Remove .owner field if calls are used which set it automatically 31 - .owner = THIS_MODULE, 40 - .owner = THIS_MODULE, 62 - .owner = THIS_MODULE, 71 - .owner = THIS_MODULE, 84 * .owner@j0 = THIS_MODULE, 95 * .owner@j0 = THIS_MODULE, 106 * .owner@j0 = THIS_MODULE, 117 * .owner@j0 = THIS_MODULE, 127 msg = "No need to set .owner here. The core will do it." [all …]
|
/linux-6.6.21/drivers/regulator/ |
D | db8500-prcmu.c | 221 .owner = THIS_MODULE, 231 .owner = THIS_MODULE, 241 .owner = THIS_MODULE, 251 .owner = THIS_MODULE, 261 .owner = THIS_MODULE, 271 .owner = THIS_MODULE, 284 .owner = THIS_MODULE, 294 .owner = THIS_MODULE, 304 .owner = THIS_MODULE, 315 .owner = THIS_MODULE, [all …]
|
D | lp8788-ldo.c | 193 .owner = THIS_MODULE, 206 .owner = THIS_MODULE, 219 .owner = THIS_MODULE, 232 .owner = THIS_MODULE, 245 .owner = THIS_MODULE, 258 .owner = THIS_MODULE, 271 .owner = THIS_MODULE, 284 .owner = THIS_MODULE, 297 .owner = THIS_MODULE, 310 .owner = THIS_MODULE, [all …]
|
D | lm363x-regulator.c | 114 .owner = THIS_MODULE, 127 .owner = THIS_MODULE, 142 .owner = THIS_MODULE, 157 .owner = THIS_MODULE, 172 .owner = THIS_MODULE, 188 .owner = THIS_MODULE, 201 .owner = THIS_MODULE, 216 .owner = THIS_MODULE, 233 .owner = THIS_MODULE, 246 .owner = THIS_MODULE, [all …]
|
/linux-6.6.21/kernel/bpf/ |
D | bpf_local_storage.c | 27 static int mem_charge(struct bpf_local_storage_map *smap, void *owner, u32 size) in mem_charge() argument 34 return map->ops->map_local_storage_charge(smap, owner, size); in mem_charge() 37 static void mem_uncharge(struct bpf_local_storage_map *smap, void *owner, in mem_uncharge() argument 43 map->ops->map_local_storage_uncharge(smap, owner, size); in mem_uncharge() 47 owner_storage(struct bpf_local_storage_map *smap, void *owner) in owner_storage() argument 51 return map->ops->map_owner_storage_ptr(owner); in owner_storage() 75 bpf_selem_alloc(struct bpf_local_storage_map *smap, void *owner, in bpf_selem_alloc() argument 80 if (charge_mem && mem_charge(smap, owner, smap->elem_size)) in bpf_selem_alloc() 109 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc() 259 void *owner; in bpf_selem_unlink_storage_nolock() local [all …]
|
/linux-6.6.21/Documentation/translations/zh_CN/mm/ |
D | page_owner.rst | 11 page owner: 跟踪谁分配的每个页面 17 page owner是用来追踪谁分配的每一个页面。它可以用来调试内存泄漏或找到内存占用者。 27 统计。如果启用了page owner,它就已经实现并激活了。我们非常欢迎其他用途。 29 page owner在默认情况下是禁用的。所以,如果你想使用它,你需要在你的启动cmdline 30 中加入"page_owner=on"。如果内核是用page owner构建的,并且由于没有启用启动 31 选项而在运行时禁用page owner,那么运行时的开销是很小的。如果在运行时禁用,它不 37 尽管启用page owner会使内核的大小增加几千字节,但这些代码大部分都在页面分配器和 38 热路径之外。构建带有page owner的内核,并在需要时打开它,将是调试内核内存问题的 57 2) 启用page owner: 添加 "page_owner=on" 到 boot cmdline.
|
/linux-6.6.21/fs/ |
D | mnt_idmapping.c | 13 struct user_namespace *owner; member 23 .owner = &init_user_ns, 38 return idmap->owner != sb->s_user_ns; in check_fsmapping() 101 struct user_namespace *mnt_userns = idmap->owner; in make_vfsuid() 139 struct user_namespace *mnt_userns = idmap->owner; in make_vfsgid() 168 struct user_namespace *mnt_userns = idmap->owner; in from_vfsuid() 196 struct user_namespace *mnt_userns = idmap->owner; in from_vfsgid() 239 idmap->owner = get_user_ns(mnt_userns); in alloc_mnt_idmap() 270 put_user_ns(idmap->owner); in mnt_idmap_put()
|
/linux-6.6.21/Documentation/locking/ |
D | rt-mutex.rst | 19 A low priority owner of a rt-mutex inherits the priority of a higher 21 boosted owner blocks on a rt-mutex itself it propagates the priority 22 boosting to the owner of the other rt_mutex it gets blocked on. The 34 rtmutex, only the top priority waiter is enqueued into the owner's 37 got a signal), the priority of the owner task is readjusted. The 46 The state of the rt-mutex is tracked via the owner field of the rt-mutex 49 lock->owner holds the task_struct pointer of the owner. Bit 0 is used to 53 owner bit0 Notes 63 possible when bit 0 of lock->owner is 0. 67 we need to set the bit0 before looking at the lock, and the owner may [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | rheap.h | 23 const char *owner; member 43 const char *owner; member 67 const char *owner); 70 extern unsigned long rh_alloc(rh_info_t * info, int size, const char *owner); 74 const char *owner); 90 extern int rh_set_owner(rh_info_t * info, unsigned long start, const char *owner);
|
/linux-6.6.21/include/linux/ |
D | local_lock_internal.h | 14 struct task_struct *owner; member 25 .owner = NULL, 30 DEBUG_LOCKS_WARN_ON(l->owner); in local_lock_acquire() 31 l->owner = current; in local_lock_acquire() 36 DEBUG_LOCKS_WARN_ON(l->owner != current); in local_lock_release() 37 l->owner = NULL; in local_lock_release() 43 l->owner = NULL; in local_lock_debug_init()
|
/linux-6.6.21/kernel/ |
D | audit_tree.c | 35 struct audit_tree *owner; member 133 if (chunk->owners[i].owner) in free_chunk() 134 put_tree(chunk->owners[i].owner); in free_chunk() 265 if (chunk->owners[n].owner == tree) in audit_tree_match() 295 struct audit_tree *owner; in replace_chunk() local 300 list_for_each_entry(owner, &new->trees, same_root) in replace_chunk() 301 owner->root = new; in replace_chunk() 303 if (!old->owners[j].owner) { in replace_chunk() 307 owner = old->owners[j].owner; in replace_chunk() 308 new->owners[i].owner = owner; in replace_chunk() [all …]
|
/linux-6.6.21/fs/xfs/libxfs/ |
D | xfs_rmap.c | 37 uint64_t owner, in xfs_rmap_lookup_le() argument 48 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le() 74 uint64_t owner, in xfs_rmap_lookup_eq() argument 81 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq() 121 uint64_t owner, in xfs_rmap_insert() argument 129 len, owner, offset, flags); in xfs_rmap_insert() 131 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert() 141 rcur->bc_rec.r.rm_owner = owner; in xfs_rmap_insert() 163 uint64_t owner, in xfs_rmap_delete() argument 171 len, owner, offset, flags); in xfs_rmap_delete() [all …]
|
/linux-6.6.21/sound/soc/intel/avs/ |
D | path.c | 74 if (path->template->owner == template) { in avs_path_find_path() 221 node_id.vindex = mod->owner->owner->dma_id; in avs_copier_create() 227 mod->owner->owner->dma_id; in avs_copier_create() 261 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_copier_create() 275 path_tmpl = t->owner->owner->owner; in avs_get_module_control() 320 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, t->core_id, in avs_peakvol_create() 344 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_updown_mix_create() 361 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_src_create() 380 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_asrc_create() 399 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_aec_create() [all …]
|
/linux-6.6.21/drivers/dma/bestcomm/ |
D | sram.c | 37 int bcom_sram_init(struct device_node *sram_node, char *owner) in bcom_sram_init() argument 47 "Already initialized !\n", owner); in bcom_sram_init() 54 "Couldn't allocate internal state !\n", owner); in bcom_sram_init() 62 "Invalid device node !\n", owner); in bcom_sram_init() 70 if (!request_mem_region(res.start, resource_size(&res), owner)) { in bcom_sram_init() 72 "Couldn't request region !\n", owner); in bcom_sram_init() 84 owner, (long)bcom_sram->base_phys, bcom_sram->size ); in bcom_sram_init()
|
/linux-6.6.21/arch/arm64/kvm/hyp/include/nvhe/ |
D | spinlock.h | 24 u16 next, owner; member 26 u16 owner, next; 78 : "Q" (lock->owner) in hyp_spin_lock() 96 : "=Q" (lock->owner), "=&r" (tmp) in hyp_spin_unlock() 105 return lockval.owner != lockval.next; in hyp_spin_is_locked()
|
/linux-6.6.21/drivers/base/ |
D | map.c | 24 struct module *owner; member 49 p->owner = module; in kobj_map() 105 struct module *owner; in kobj_lookup() local 112 if (!try_module_get(p->owner)) in kobj_lookup() 114 owner = p->owner; in kobj_lookup() 120 module_put(owner); in kobj_lookup() 126 module_put(owner); in kobj_lookup()
|