/linux-6.14.4/kernel/locking/ |
D | rtmutex.c | 68 * lock->owner state tracking: 70 * lock->owner holds the task_struct pointer of the owner. Bit 0 73 * owner bit0 81 * possible when bit 0 of lock->owner is 0. 85 * we need to set the bit0 before looking at the lock, and the owner may be 90 * To prevent a cmpxchg of the owner releasing the lock, we need to 95 rt_mutex_owner_encode(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_owner_encode() argument 97 unsigned long val = (unsigned long)owner; in rt_mutex_owner_encode() 106 rt_mutex_set_owner(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_set_owner() argument 110 * for a new lock owner so WRITE_ONCE is insufficient. in rt_mutex_set_owner() [all …]
|
D | spinlock_debug.c | 29 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init() 48 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init() 57 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local 59 if (owner == SPINLOCK_OWNER_INIT) in spin_dump() 60 owner = NULL; in spin_dump() 64 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " in spin_dump() 67 owner ? owner->comm : "<none>", in spin_dump() 68 owner ? task_pid_nr(owner) : -1, in spin_dump() 87 SPIN_BUG_ON(READ_ONCE(lock->owner) == current, lock, "recursion"); in debug_spin_lock_before() 95 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after() [all …]
|
D | rwsem.c | 36 * The least significant 2 bits of the owner value has the following 45 * into the owner field. It is cleared after an unlock. 48 * pointer into the owner field with the RWSEM_READER_OWNED bit set. 49 * On unlock, the owner field will largely be left untouched. So 50 * for a free or reader-owned rwsem, the owner value may contain 70 …WARN_ONCE(c, "DEBUG_RWSEMS_WARN_ON(%s): count = 0x%lx, magic = 0x%lx, owner = 0x%lx, curr 0x%lx, l… 73 atomic_long_read(&(sem)->owner), (long)current, \ 131 * All writes to owner are protected by WRITE_ONCE() to make sure that 133 * the owner value concurrently without lock. Read from owner, however, 143 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner() [all …]
|
D | mutex.c | 48 atomic_long_set(&lock->owner, 0); in __mutex_init() 59 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument 61 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task() 70 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument 72 return owner & MUTEX_FLAGS; in __owner_flags() 80 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_common() local 82 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common() 84 unsigned long flags = __owner_flags(owner); in __mutex_trylock_common() 85 unsigned long task = owner & ~MUTEX_FLAGS; in __mutex_trylock_common() 104 if (atomic_long_try_cmpxchg_acquire(&lock->owner, &owner, task | flags)) { in __mutex_trylock_common() [all …]
|
/linux-6.14.4/drivers/media/mc/ |
D | mc-dev-allocator.c | 31 struct module *owner; member 63 struct module *owner) in __media_device_get() argument 73 /* get module reference for the media_device owner */ in __media_device_get() 74 if (owner != mdi->owner && !try_module_get(mdi->owner)) in __media_device_get() 76 "%s: module %s get owner reference error\n", in __media_device_get() 79 dev_dbg(dev, "%s: module %s got owner reference\n", in __media_device_get() 88 mdi->owner = owner; in __media_device_get() 92 dev_dbg(dev, "%s: Allocated media device for owner %s\n", 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() [all …]
|
/linux-6.14.4/arch/s390/lib/ |
D | spinlock.c | 76 int owner; in arch_load_niai4() local 80 " l %[owner],%[lock]\n" in arch_load_niai4() 81 : [owner] "=d" (owner) : [lock] "R" (*lock) : "memory"); in arch_load_niai4() 82 return owner; in arch_load_niai4() 140 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local 181 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 182 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() 183 smp_yield_cpu(owner - 1); in arch_spin_lock_queued() 193 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 194 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() [all …]
|
/linux-6.14.4/rust/kernel/sync/ |
D | locked_by.rs | 79 owner: *const U, field 97 /// It stores a raw pointer to the owner that is never dereferenced. It is only used to ensure 98 /// that the right owner is being used to access the protected data. If the owner is freed, the 99 /// data becomes inaccessible; if another instance of the owner is allocated *on the same 102 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new() 108 owner: owner.data.get(), in new() 116 /// reference) that the owner is locked. 123 /// Panics if `owner` is different from the data protected by the lock used in 125 pub fn access<'a>(&'a self, owner: &'a U) -> &'a T in access() 131 "`U` cannot be a ZST because `owner` wouldn't be unique" in access() [all …]
|
/linux-6.14.4/fs/btrfs/ |
D | locking.h | 96 * @owner: The struct where the lockdep map is defined 104 #define btrfs_might_wait_for_event(owner, lock) \ argument 106 rwsem_acquire(&owner->lock##_map, 0, 0, _THIS_IP_); \ 107 rwsem_release(&owner->lock##_map, _THIS_IP_); \ 113 * @owner: The struct where the lockdep map is defined 121 #define btrfs_lockdep_acquire(owner, lock) \ argument 122 rwsem_acquire_read(&owner->lock##_map, 0, 0, _THIS_IP_) 128 #define btrfs_lockdep_release(owner, lock) \ argument 129 rwsem_release(&owner->lock##_map, _THIS_IP_) 135 #define btrfs_lockdep_inode_acquire(owner, lock) \ argument [all …]
|
/linux-6.14.4/net/core/ |
D | devmem.c | 34 struct dmabuf_genpool_chunk_owner *owner = chunk->owner; in net_devmem_dmabuf_free_chunk_owner() local 36 kvfree(owner->niovs); in net_devmem_dmabuf_free_chunk_owner() 37 kfree(owner); in net_devmem_dmabuf_free_chunk_owner() 42 struct dmabuf_genpool_chunk_owner *owner = net_iov_owner(niov); in net_devmem_get_dma_addr() local 44 return owner->base_dma_addr + in net_devmem_get_dma_addr() 73 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_alloc_dmabuf() local 80 (void **)&owner); in net_devmem_alloc_dmabuf() 84 offset = dma_addr - owner->base_dma_addr; in net_devmem_alloc_dmabuf() 86 niov = &owner->niovs[index]; in net_devmem_alloc_dmabuf() 255 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_bind_dmabuf() local [all …]
|
/linux-6.14.4/Documentation/userspace-api/ |
D | ntsync.rst | 31 identifier denoting its owner. A mutex is considered signaled when its 32 owner is zero (indicating that it is not owned). The recursion count is 36 A mutex also holds an internal flag denoting whether its previous owner 37 has died; such a mutex is said to be abandoned. Owner death is not 43 owner identifier is not interpreted by the ntsync driver at all. The 81 __u32 owner; 94 __u32 owner; 130 * - ``owner`` 131 - Initial owner of the mutex. 133 If ``owner`` is nonzero and ``count`` is zero, or if ``owner`` is [all …]
|
/linux-6.14.4/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.14.4/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 …]
|
D | rt-mutex-design.rst | 108 pi_waiters rbtree of a mutex owner task (described below). 301 Mutex owner and flags 304 The mutex structure contains a pointer to the owner of the mutex. If the 305 mutex is not owned, this owner is set to NULL. Since all architectures 341 The use of rt_mutex_cmpxchg with the flags in the owner field help optimize 394 (de)boosting (the owner of a mutex that a process is blocking on), a flag to 404 that the state of the owner and lock can change when entered into this function. 425 fails). Only when the owner field of the mutex is NULL can the lock be 435 tree of the owner. 446 the "Has Waiters" flag of the mutex's owner field. By setting this flag [all …]
|
/linux-6.14.4/kernel/futex/ |
D | pi.c | 27 pi_state->owner = NULL; in refill_pi_state_cache() 49 struct task_struct *old_owner = pi_state->owner; in pi_state_update_owner() 64 pi_state->owner = new_owner; in pi_state_update_owner() 87 * If pi_state->owner is NULL, the owner is most probably dying in put_pi_state() 90 if (pi_state->owner) { in put_pi_state() 104 * clear pi_state->owner. in put_pi_state() 107 pi_state->owner = NULL; in put_pi_state() 116 * Waiter | pi_state | pi->owner | uTID | uODIED | ? 138 * thread is found then it indicates that the owner TID has died. 148 * [6] Valid state after exit_pi_state_list() which sets the new owner in [all …]
|
/linux-6.14.4/drivers/xen/ |
D | pci.c | 280 struct xen_device_domain_owner *owner; in find_device() local 282 list_for_each_entry(owner, &dev_domain_list, list) { in find_device() 283 if (owner->dev == dev) in find_device() 284 return owner; in find_device() 291 struct xen_device_domain_owner *owner; in xen_find_device_domain_owner() local 295 owner = find_device(dev); in xen_find_device_domain_owner() 296 if (owner) in xen_find_device_domain_owner() 297 domain = owner->domain; in xen_find_device_domain_owner() 305 struct xen_device_domain_owner *owner; in xen_register_device_domain_owner() local 307 owner = kzalloc(sizeof(struct xen_device_domain_owner), GFP_KERNEL); in xen_register_device_domain_owner() [all …]
|
/linux-6.14.4/fs/xfs/libxfs/ |
D | xfs_rmap.c | 34 * Lookup the first record less than or equal to [bno, len, owner, offset] 41 uint64_t owner, in xfs_rmap_lookup_le() argument 52 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le() 72 * Lookup the record exactly matching [bno, len, owner, offset] 80 uint64_t owner, in xfs_rmap_lookup_eq() argument 87 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_eq() 95 * by [bno, len, owner, offset]. 125 uint64_t owner, in xfs_rmap_insert() argument 132 trace_xfs_rmap_insert(rcur, agbno, len, owner, offset, flags); in xfs_rmap_insert() 134 error = xfs_rmap_lookup_eq(rcur, agbno, len, owner, offset, flags, &i); in xfs_rmap_insert() [all …]
|
D | xfs_rmap.h | 88 uint64_t *owner, in xfs_owner_info_unpack() argument 94 *owner = oinfo->oi_owner; in xfs_owner_info_unpack() 106 uint64_t owner, in xfs_owner_info_pack() argument 110 oinfo->oi_owner = owner; in xfs_owner_info_pack() 127 uint64_t owner, uint64_t offset, unsigned int flags, 130 xfs_extlen_t len, uint64_t owner, uint64_t offset, 133 xfs_extlen_t len, uint64_t owner, uint64_t offset, 190 xfs_extlen_t len, uint64_t owner); 192 xfs_extlen_t len, uint64_t owner); 202 uint64_t owner, uint64_t offset, unsigned int flags, [all …]
|
/linux-6.14.4/tools/testing/selftests/ftrace/test.d/00basic/ |
D | test_ownership.tc | 13 # find another owner and group that is not the original 31 owner=`stat -c "%u" $file` 34 echo "testing $file $owner=$original_owner and $group=$test_group" 35 if [ $owner -ne $original_owner ]; then 42 # Note, the remount does not update ownership so test going to and from owner 43 echo "test owner $file to $other_owner" 45 owner=`stat -c "%u" $file` 46 if [ $owner -ne $other_owner ]; then 51 owner=`stat -c "%u" $file` 52 if [ $owner -ne $original_owner ]; then
|
/linux-6.14.4/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() 110 mem_uncharge(smap, owner, smap->elem_size); in bpf_selem_alloc() 246 /* reuse_now == true only happens when the storage owner in bpf_selem_free() [all …]
|
/linux-6.14.4/tools/testing/selftests/drivers/ntsync/ |
D | ntsync.c | 43 static int read_mutex_state(int mutex, __u32 *count, __u32 *owner) in read_mutex_state() argument 51 *owner = args.owner; in read_mutex_state() 55 #define check_mutex_state(mutex, count, owner) \ argument 61 EXPECT_EQ((owner), __owner); \ 64 static int unlock_mutex(int mutex, __u32 owner, __u32 *count) in unlock_mutex() argument 69 args.owner = owner; in unlock_mutex() 98 const int *objs, __u32 owner, int alert, __u32 *index) in wait_objs() argument 109 args.owner = owner; in wait_objs() 117 static int wait_any(int fd, __u32 count, const int *objs, __u32 owner, __u32 *index) in wait_any() argument 119 return wait_objs(fd, NTSYNC_IOC_WAIT_ANY, count, objs, owner, 0, index); in wait_any() [all …]
|
/linux-6.14.4/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 …]
|
/linux-6.14.4/Documentation/mm/ |
D | page_owner.rst | 2 page owner: Tracking about who allocated each page 8 page owner is for the tracking about who allocated each page. 22 page owner can also be used for various purposes. For example, accurate 24 each page. It is already implemented and activated if page owner is 32 page owner is disabled by default. So, if you'd like to use it, you need 34 with page owner and page owner is disabled in runtime due to not enabling 36 doesn't require memory to store owner information, so there is no runtime 37 memory overhead. And, page owner inserts just two unlikely branches into 39 like as the kernel without page owner. These two unlikely branches should 44 Although enabling page owner increases kernel size by several kilobytes, [all …]
|
/linux-6.14.4/sound/soc/intel/avs/ |
D | path.c | 75 if (path->template->owner == template) { in avs_path_find_path() 222 node_id.vindex = mod->owner->owner->dma_id; in avs_copier_create() 228 mod->owner->owner->dma_id; in avs_copier_create() 259 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_copier_create() 272 path_tmpl = t->owner->owner->owner; in avs_get_module_control() 318 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, t->core_id, in avs_peakvol_create() 341 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_updown_mix_create() 358 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_src_create() 378 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_asrc_create() 397 return avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_aec_create() [all …]
|
/linux-6.14.4/drivers/gpu/drm/imagination/ |
D | pvr_stream_defs.c | 13 #define PVR_STREAM_DEF_SET(owner, member, _size, _array_size, _feature) \ argument 14 { .offset = offsetof(struct owner, member), \ 19 #define PVR_STREAM_DEF(owner, member, member_size) \ argument 20 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ ## member_size, 0, PVR_FEATURE_NONE) 22 #define PVR_STREAM_DEF_FEATURE(owner, member, member_size, feature) \ argument 23 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ ## member_size, 0, feature) 25 #define PVR_STREAM_DEF_NOT_FEATURE(owner, member, member_size, feature) \ argument 26 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ ## member_size, 0, \ 29 #define PVR_STREAM_DEF_ARRAY(owner, member) \ argument 30 PVR_STREAM_DEF_SET(owner, member, PVR_STREAM_SIZE_ARRAY, \ [all …]
|