Home
last modified time | relevance | path

Searched refs:owner (Results 1 – 25 of 62) sorted by relevance

123

/kernel/locking/
Dmutex.c51 atomic_long_set(&lock->owner, 0); in __mutex_init()
86 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner()
89 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument
91 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task()
100 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument
102 return owner & MUTEX_FLAGS; in __owner_flags()
110 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_common() local
112 owner = atomic_long_read(&lock->owner); in __mutex_trylock_common()
114 unsigned long flags = __owner_flags(owner); in __mutex_trylock_common()
115 unsigned long task = owner & ~MUTEX_FLAGS; in __mutex_trylock_common()
[all …]
Drtmutex.c94 rt_mutex_owner_encode(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_owner_encode() argument
96 unsigned long val = (unsigned long)owner; in rt_mutex_owner_encode()
105 rt_mutex_set_owner(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_set_owner() argument
111 xchg_acquire(&lock->owner, rt_mutex_owner_encode(lock, owner)); in rt_mutex_set_owner()
117 WRITE_ONCE(lock->owner, rt_mutex_owner_encode(lock, NULL)); in rt_mutex_clear_owner()
122 lock->owner = (struct task_struct *) in clear_rt_mutex_waiters()
123 ((unsigned long)lock->owner & ~RT_MUTEX_HAS_WAITERS); in clear_rt_mutex_waiters()
129 unsigned long owner, *p = (unsigned long *) &lock->owner; in fixup_rt_mutex_waiters() local
192 owner = READ_ONCE(*p); in fixup_rt_mutex_waiters()
193 if (owner & RT_MUTEX_HAS_WAITERS) { in fixup_rt_mutex_waiters()
[all …]
Dspinlock_debug.c28 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 …]
Drwsem.c75 atomic_long_read(&(sem)->owner), (long)current, \
145 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner()
152 atomic_long_set(&sem->owner, 0); in rwsem_clear_owner()
161 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
175 struct task_struct *owner) in __rwsem_set_reader_owned() argument
177 unsigned long val = (unsigned long)owner | RWSEM_READER_OWNED | in __rwsem_set_reader_owned()
178 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned()
180 atomic_long_set(&sem->owner, val); in __rwsem_set_reader_owned()
215 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
219 if (atomic_long_try_cmpxchg(&sem->owner, &val, in rwsem_clear_reader_owned()
[all …]
Drtmutex_common.h159 unsigned long owner = (unsigned long) READ_ONCE(lock->owner); in rt_mutex_owner() local
161 return (struct task_struct *) (owner & ~RT_MUTEX_HAS_WAITERS); in rt_mutex_owner()
183 lock->owner = NULL; in __rt_mutex_base_init()
Drwbase_rt.c144 struct task_struct *owner; in __rwbase_read_unlock() local
154 owner = rt_mutex_owner(rtm); in __rwbase_read_unlock()
155 if (owner) in __rwbase_read_unlock()
156 rt_mutex_wake_q_add_task(&wqh, owner, state); in __rwbase_read_unlock()
Dww_mutex.h70 return atomic_long_read(&lock->owner) & MUTEX_FLAG_WAITERS; in __ww_mutex_has_waiters()
304 struct task_struct *owner = __ww_mutex_owner(lock); in __ww_mutex_wound() local
321 if (!owner) in __ww_mutex_wound()
333 if (owner != current) in __ww_mutex_wound()
334 wake_up_process(owner); in __ww_mutex_wound()
/kernel/bpf/
Dbpf_local_storage.c27 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 …]
Dbpf_inode_storage.c25 inode_storage_ptr(void *owner) in inode_storage_ptr() argument
27 struct inode *inode = owner; in inode_storage_ptr()
Dbpf_cgrp_storage.c39 static struct bpf_local_storage __rcu **cgroup_storage_ptr(void *owner) in cgroup_storage_ptr() argument
41 struct cgroup *cg = owner; in cgroup_storage_ptr()
Dhelpers.c2051 if (cmpxchg(&node->owner, NULL, BPF_PTR_POISON)) { in __bpf_list_add()
2058 WRITE_ONCE(node->owner, head); in __bpf_list_add()
2098 if (WARN_ON_ONCE(READ_ONCE(node->owner) != head)) in __bpf_list_del()
2102 WRITE_ONCE(node->owner, NULL); in __bpf_list_del()
2126 if (READ_ONCE(node_internal->owner) != root) in bpf_rbtree_remove()
2131 WRITE_ONCE(node_internal->owner, NULL); in bpf_rbtree_remove()
2150 if (cmpxchg(&node->owner, NULL, BPF_PTR_POISON)) { in __bpf_rbtree_add()
2168 WRITE_ONCE(node->owner, root); in __bpf_rbtree_add()
2558 .owner = THIS_MODULE,
2589 .owner = THIS_MODULE,
Dbpf_task_storage.c49 static struct bpf_local_storage __rcu **task_storage_ptr(void *owner) in task_storage_ptr() argument
51 struct task_struct *task = owner; in task_storage_ptr()
Dinode.c691 if (!try_module_get(bpf_preload_ops->owner)) { in bpf_preload_mod_get()
702 module_put(bpf_preload_ops->owner); in bpf_preload_mod_put()
796 .owner = THIS_MODULE,
/kernel/
Daudit_tree.c35 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 …]
Duser_namespace.c85 kuid_t owner = new->euid; in create_user_ns() local
94 ucounts = inc_user_namespaces(parent_ns, owner); in create_user_ns()
113 if (!kuid_has_mapping(parent_ns, owner) || in create_user_ns()
136 ns->owner = owner; in create_user_ns()
1173 uid_eq(ns->owner, cred->euid)) { in new_idmap_permitted()
1373 struct user_namespace *owner, *p; in ns_get_owner() local
1376 owner = p = ns->ops->owner(ns); in ns_get_owner()
1385 return &get_user_ns(owner)->ns; in ns_get_owner()
1399 .owner = userns_owner,
Dgen_kheaders.sh92 --owner=0 --group=0 --sort=name --numeric-owner --mode=u=rw,go=r,a+X \
Dpid_namespace.c456 .owner = pidns_owner,
467 .owner = pidns_owner,
/kernel/futex/
Dpi.c26 pi_state->owner = NULL; in refill_pi_state_cache()
48 struct task_struct *old_owner = pi_state->owner; in pi_state_update_owner()
63 pi_state->owner = new_owner; in pi_state_update_owner()
89 if (pi_state->owner) { in put_pi_state()
106 pi_state->owner = NULL; in put_pi_state()
257 if (!pi_state->owner) { in attach_to_pi_state()
285 if (!pi_state->owner) in attach_to_pi_state()
294 if (pid != task_pid_vnr(pi_state->owner)) in attach_to_pi_state()
402 pi_state->owner = p; in __attach_to_pi_owner()
691 oldowner = pi_state->owner; in __fixup_pi_state_owner()
[all …]
Dcore.c655 pid_t owner; in handle_futex_death() local
702 owner = uval & FUTEX_TID_MASK; in handle_futex_death()
704 if (pending_op && !pi && !owner) { in handle_futex_death()
709 if (owner != task_pid_vnr(curr)) in handle_futex_death()
1009 WARN_ON(pi_state->owner != curr); in exit_pi_state_list()
1012 pi_state->owner = NULL; in exit_pi_state_list()
/kernel/irq/
Dirqdesc.c103 const struct cpumask *affinity, struct module *owner) in desc_set_defaults() argument
123 desc->owner = owner; in desc_set_defaults()
415 struct module *owner) in alloc_desc() argument
436 desc_set_defaults(irq, desc, node, affinity, owner); in alloc_desc()
496 struct module *owner) in alloc_descs() argument
524 desc = alloc_desc(start + i, node, flags, mask, owner); in alloc_descs()
629 struct module *owner) in alloc_descs() argument
636 desc->owner = owner; in alloc_descs()
813 struct module *owner, const struct irq_affinity_desc *affinity) in __irq_alloc_descs() argument
845 ret = alloc_descs(start, cnt, node, affinity, owner); in __irq_alloc_descs()
Ddevres.c179 unsigned int cnt, int node, struct module *owner, in __devm_irq_alloc_descs() argument
189 base = __irq_alloc_descs(irq, from, cnt, node, owner, affinity); in __devm_irq_alloc_descs()
/kernel/module/
Dmain.c277 struct module *owner, in find_exported_symbol_in_section() argument
290 fsa->owner = owner; in find_exported_symbol_in_section()
786 module_put(fsa.owner); in __symbol_put()
1091 static bool inherit_taint(struct module *mod, struct module *owner, const char *name) in inherit_taint() argument
1093 if (!owner || !test_bit(TAINT_PROPRIETARY_MODULE, &owner->taints)) in inherit_taint()
1098 mod->name, name, owner->name); in inherit_taint()
1104 mod->name, name, owner->name); in inherit_taint()
1138 if (!inherit_taint(mod, fsa.owner, name)) { in resolve_symbol()
1163 is_vendor_exported_symbol = fsa.owner && !fsa.owner->sig_ok; in resolve_symbol()
1172 err = ref_module(mod, fsa.owner); in resolve_symbol()
[all …]
/kernel/time/
Dposix-clock.c150 .owner = THIS_MODULE,
175 clk->cdev.owner = clk->ops.owner; in posix_clock_register()
Dclockevents.c369 if (!try_module_get(dev->owner)) in clockevents_replace()
373 module_put(newdev->owner); in clockevents_replace()
576 module_put(old->owner); in clockevents_exchange_device()
/kernel/bpf/preload/
Dbpf_preload.h12 struct module *owner; member

123