| /linux/drivers/media/mc/ |
| H A 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/arch/s390/lib/ |
| H A D | spinlock.c | 95 int owner; in arch_load_niai4() local 99 " l %[owner],%[lock]" in arch_load_niai4() 100 : [owner] "=d" (owner) : [lock] "R" (*lock) : "memory"); in arch_load_niai4() 101 return owner; in arch_load_niai4() 159 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local 200 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 201 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() 202 smp_yield_cpu(owner - 1); in arch_spin_lock_queued() 212 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 213 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() [all …]
|
| /linux/rust/kernel/sync/ |
| H A 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/fs/btrfs/ |
| H A 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/kernel/locking/ |
| H A 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 …]
|
| H A D | mutex.c | 49 atomic_long_set(&lock->owner, 0); in __mutex_init() 60 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument 62 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task() 71 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument 73 return owner & MUTEX_FLAGS; in __owner_flags() 79 unsigned long owner = atomic_long_read(&lock->owner); in mutex_get_owner() local 81 return (unsigned long)__owner_task(owner); in mutex_get_owner() 89 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_common() local 91 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common() 93 unsigned long flags = __owner_flags(owner); in __mutex_trylock_common() [all …]
|
| H A D | rwsem.c | 37 * The least significant 2 bits of the owner value has the following 46 * into the owner field. It is cleared after an unlock. 49 * pointer into the owner field with the RWSEM_READER_OWNED bit set. 50 * On unlock, the owner field will largely be left untouched. So 51 * for a free or reader-owned rwsem, the owner value may contain 71 …WARN_ONCE(c, "DEBUG_RWSEMS_WARN_ON(%s): count = 0x%lx, magic = 0x%lx, owner = 0x%lx, curr 0x%lx, l… 74 atomic_long_read(&(sem)->owner), (long)current, \ 132 * All writes to owner are protected by WRITE_ONCE() to make sure that 134 * the owner value concurrently without lock. Read from owner, however, 144 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner() [all …]
|
| /linux/net/core/ |
| H A D | devmem.c | 42 struct dmabuf_genpool_chunk_owner *owner = chunk->owner; in net_devmem_dmabuf_free_chunk_owner() local 44 kvfree(owner->area.niovs); in net_devmem_dmabuf_free_chunk_owner() 45 kfree(owner); in net_devmem_dmabuf_free_chunk_owner() 50 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_get_dma_addr() local 52 owner = net_devmem_iov_to_chunk_owner(niov); in net_devmem_get_dma_addr() 53 return owner->base_dma_addr + in net_devmem_get_dma_addr() 85 struct dmabuf_genpool_chunk_owner *owner; in net_devmem_alloc_dmabuf() local 92 (void **)&owner); in net_devmem_alloc_dmabuf() 96 offset = dma_addr - owner->base_dma_addr; in net_devmem_alloc_dmabuf() 98 niov = &owner->area.niovs[index]; in net_devmem_alloc_dmabuf() [all …]
|
| /linux/scripts/coccinelle/api/ |
| H A D | platform_no_drv_owner.cocci | 2 /// Remove .owner field if calls are used which set it automatically 40 - .owner = THIS_MODULE, 49 - .owner = THIS_MODULE, 71 - .owner = THIS_MODULE, 80 - .owner = THIS_MODULE, 93 * .owner@j0 = THIS_MODULE, 104 * .owner@j0 = THIS_MODULE, 115 * .owner@j0 = THIS_MODULE, 126 * .owner@j0 = THIS_MODULE, 136 msg = "No need to set .owner here. The core will do it." [all …]
|
| /linux/kernel/futex/ |
| H A 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 TI [all...] |
| /linux/Documentation/locking/ |
| H A 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 …]
|
| H A 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/fs/xfs/libxfs/ |
| H A 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 …]
|
| H A 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/kernel/bpf/ |
| H A 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/tools/testing/selftests/ftrace/test.d/00basic/ |
| H A 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/Documentation/mm/ |
| H A 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/drivers/gpu/drm/imagination/ |
| H A 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 …]
|
| /linux/drivers/regulator/ |
| H A 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/drivers/misc/ |
| H A D | ntsync.c | 62 pid_t owner; member 106 __u32 owner; member 230 static bool is_signaled(struct ntsync_obj *obj, __u32 owner) in is_signaled() argument 238 if (obj->u.mutex.owner && obj->u.mutex.owner != owner) in is_signaled() 272 if (!is_signaled(q->entries[i].obj, q->owner)) { in try_wake_all() 291 obj->u.mutex.owner = q->owner; in try_wake_all() 353 if (mutex->u.mutex.owner && mutex->u.mutex.owner != q->owner) in try_wake_any_mutex() 361 mutex->u.mutex.owner = q->owner; in try_wake_any_mutex() 441 * Actually change the mutex state, returning -EPERM if not the owner. 448 if (mutex->u.mutex.owner != args->owner) in unlock_mutex_state() [all …]
|
| /linux/sound/soc/intel/avs/ |
| H A D | path.c | 75 if (path->template->owner == template) { in avs_path_find_path() 155 if (id->id != path->template->owner->id || in avs_path_set_constraint() 156 strcmp(id->tplg_name, path->template->owner->owner->name)) in avs_path_set_constraint() 411 dma_id = mod->owner->owner->dma_id; in avs_whm_create() 429 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, t->core_id, in avs_get_module_control() 445 dma_id = mod->owner->owner->dma_id; in avs_peakvol_set_volume() 464 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner in avs_peakvol_set_volume() 819 avs_path_module_create(struct avs_dev * adev,struct avs_path_pipeline * owner,struct avs_tplg_module * template) avs_path_module_create() argument 912 avs_path_binding_create(struct avs_dev * adev,struct avs_path_pipeline * owner,struct avs_tplg_binding * t) avs_path_binding_create() argument 984 avs_path_pipeline_create(struct avs_dev * adev,struct avs_path * owner,struct avs_tplg_pipeline * template) avs_path_pipeline_create() argument [all...] |
| /linux/include/linux/framer/ |
| H A D | framer-provider.h | 35 * @owner: the module owner containing the ops 80 struct module *owner; member 86 * @owner: the module owner having of_xlate 92 struct module *owner; member 123 __framer_provider_of_register(struct device *dev, struct module *owner, 130 __devm_framer_provider_of_register(struct device *dev, struct module *owner, 162 __framer_provider_of_register(struct device *dev, struct module *owner, in __framer_provider_of_register() argument 174 __devm_framer_provider_of_register(struct device *dev, struct module *owner, in __devm_framer_provider_of_register() argument
|
| /linux/tools/perf/util/bpf_skel/ |
| H A D | lock_contention.bpf.c | 36 /* buffer for owner stacktrace */ 44 /* a map for tracing owner stacktrace to owner stack id */ 47 __uint(key_size, sizeof(__u64)); // owner stacktrace 48 __uint(value_size, sizeof(__s32)); // owner stack id 52 /* a map for tracing lock address to owner data */ 60 /* a map for contention_key (stores owner stack id) to contention data */ 163 struct task_struct *owner; member 167 atomic_long_t owner; member 329 __u64 owner = 0; in get_lock_owner() local 333 owner = BPF_CORE_READ(mutex, owner.counter); in get_lock_owner() [all …]
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-spi.c | 24 /* the owner is the same as the spi_device's driver owner */ in v4l2_spi_subdev_init() 25 sd->owner = spi->dev.driver->owner; in v4l2_spi_subdev_init() 53 if (!try_module_get(spi->dev.driver->owner)) in v4l2_spi_new_subdev() 62 if (__v4l2_device_register_subdev(v4l2_dev, sd, sd->owner)) in v4l2_spi_new_subdev() 66 module_put(spi->dev.driver->owner); in v4l2_spi_new_subdev()
|
| /linux/kernel/ |
| H A D | audit_tree.c | 35 struct audit_tree *owner; member 135 if (chunk->owners[i].owner) in free_chunk() 136 put_tree(chunk->owners[i].owner); in free_chunk() 267 if (chunk->owners[n].owner == tree) in audit_tree_match() 297 struct audit_tree *owner; in replace_chunk() local 302 list_for_each_entry(owner, &new->trees, same_root) in replace_chunk() 303 owner->root = new; in replace_chunk() 305 if (!old->owners[j].owner) { in replace_chunk() 309 owner = old->owners[j].owner; in replace_chunk() 310 new->owners[i].owner = owner; in replace_chunk() [all …]
|