/kernel/locking/ |
D | mutex.c | 42 atomic_long_set(&lock->owner, 0); in __mutex_init() 75 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner() 78 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument 80 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task() 99 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument 101 return owner & MUTEX_FLAGS; in __owner_flags() 109 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_or_owner() local 111 owner = atomic_long_read(&lock->owner); in __mutex_trylock_or_owner() 113 unsigned long old, flags = __owner_flags(owner); in __mutex_trylock_or_owner() 114 unsigned long task = owner & ~MUTEX_FLAGS; in __mutex_trylock_or_owner() [all …]
|
D | rtmutex.c | 53 rt_mutex_set_owner(struct rt_mutex *lock, struct task_struct *owner) in rt_mutex_set_owner() argument 55 unsigned long val = (unsigned long)owner; in rt_mutex_set_owner() 60 lock->owner = (struct task_struct *)val; in rt_mutex_set_owner() 65 lock->owner = (struct task_struct *) in clear_rt_mutex_waiters() 66 ((unsigned long)lock->owner & ~RT_MUTEX_HAS_WAITERS); in clear_rt_mutex_waiters() 71 unsigned long owner, *p = (unsigned long *) &lock->owner; in fixup_rt_mutex_waiters() local 134 owner = READ_ONCE(*p); in fixup_rt_mutex_waiters() 135 if (owner & RT_MUTEX_HAS_WAITERS) in fixup_rt_mutex_waiters() 136 WRITE_ONCE(*p, owner & ~RT_MUTEX_HAS_WAITERS); in fixup_rt_mutex_waiters() 144 # define rt_mutex_cmpxchg_relaxed(l,c,n) (cmpxchg_relaxed(&l->owner, c, n) == c) [all …]
|
D | spinlock_debug.c | 28 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init() 46 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init() 54 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local 56 if (owner == SPINLOCK_OWNER_INIT) in spin_dump() 57 owner = NULL; in spin_dump() 64 owner ? owner->comm : "<none>", in spin_dump() 65 owner ? task_pid_nr(owner) : -1, in spin_dump() 84 SPIN_BUG_ON(READ_ONCE(lock->owner) == current, lock, "recursion"); in debug_spin_lock_before() 92 WRITE_ONCE(lock->owner, current); in debug_spin_lock_after() 99 SPIN_BUG_ON(lock->owner != current, lock, "wrong owner"); in debug_spin_unlock() [all …]
|
D | rwsem.c | 111 atomic_long_read(&(sem)->owner), (long)current, \ 177 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner() 182 atomic_long_set(&sem->owner, 0); in rwsem_clear_owner() 190 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags() 204 struct task_struct *owner) in __rwsem_set_reader_owned() argument 206 unsigned long val = (unsigned long)owner | RWSEM_READER_OWNED | in __rwsem_set_reader_owned() 207 (atomic_long_read(&sem->owner) & RWSEM_RD_NONSPINNABLE); in __rwsem_set_reader_owned() 209 atomic_long_set(&sem->owner, val); in __rwsem_set_reader_owned() 243 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned() 246 if (atomic_long_try_cmpxchg(&sem->owner, &val, in rwsem_clear_reader_owned() [all …]
|
D | rtmutex_common.h | 110 unsigned long owner = (unsigned long) READ_ONCE(lock->owner); in rt_mutex_owner() local 112 return (struct task_struct *) (owner & ~RT_MUTEX_HAS_WAITERS); in rt_mutex_owner()
|
D | rtmutex-debug.c | 53 printk(".. ->owner: %p\n", lock->owner); in printk_lock()
|
/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() 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 …]
|
D | futex.c | 202 struct task_struct *owner; member 824 pi_state->owner = NULL; in refill_pi_state_cache() 864 if (pi_state->owner) { in put_pi_state() 865 struct task_struct *owner; in put_pi_state() local 868 owner = pi_state->owner; in put_pi_state() 869 if (owner) { in put_pi_state() 870 raw_spin_lock(&owner->pi_lock); in put_pi_state() 872 raw_spin_unlock(&owner->pi_lock); in put_pi_state() 874 rt_mutex_proxy_unlock(&pi_state->pi_mutex, owner); in put_pi_state() 886 pi_state->owner = NULL; in put_pi_state() [all …]
|
D | user_namespace.c | 72 kuid_t owner = new->euid; in create_user_ns() local 81 ucounts = inc_user_namespaces(parent_ns, owner); in create_user_ns() 100 if (!kuid_has_mapping(parent_ns, owner) || in create_user_ns() 118 ns->owner = owner; in create_user_ns() 1093 uid_eq(ns->owner, cred->euid)) { in new_idmap_permitted() 1290 struct user_namespace *owner, *p; in ns_get_owner() local 1293 owner = p = ns->ops->owner(ns); in ns_get_owner() 1302 return &get_user_ns(owner)->ns; in ns_get_owner() 1316 .owner = userns_owner,
|
D | gen_kheaders.sh | 79 --owner=0 --group=0 --numeric-owner --no-recursion \
|
D | module.c | 404 struct module *owner, in each_symbol_in_section() argument 406 struct module *owner, in each_symbol_in_section() 413 if (fn(&arr[j], owner, data)) in each_symbol_in_section() 422 struct module *owner, in each_symbol_section() argument 491 struct module *owner; member 497 struct module *owner, in check_exported_symbol() argument 524 fsa->owner = owner; in check_exported_symbol() 565 struct module *owner, in find_exported_symbol_in_section() argument 574 if (sym != NULL && check_exported_symbol(syms, owner, in find_exported_symbol_in_section() 584 struct module **owner, in find_symbol() argument [all …]
|
D | configs.c | 51 .owner = THIS_MODULE,
|
D | pid_namespace.c | 443 .owner = pidns_owner, 454 .owner = pidns_owner,
|
D | utsname.c | 168 .owner = utsns_owner,
|
D | audit.c | 180 void *owner; member 231 audit_cmd_mutex.owner = current; in audit_ctl_lock() 239 audit_cmd_mutex.owner = NULL; in audit_ctl_unlock() 252 return (current == audit_cmd_mutex.owner); in audit_ctl_owner_current() 1592 audit_cmd_mutex.owner = NULL; in audit_init()
|
D | user.c | 60 .owner = GLOBAL_ROOT_UID,
|
D | exit.c | 356 if (mm->owner != p) in mm_update_next_owner() 364 WRITE_ONCE(mm->owner, NULL); in mm_update_next_owner() 404 WRITE_ONCE(mm->owner, NULL); in mm_update_next_owner() 425 WRITE_ONCE(mm->owner, c); in mm_update_next_owner()
|
/kernel/irq/ |
D | irqdesc.c | 104 const struct cpumask *affinity, struct module *owner) in desc_set_defaults() argument 124 desc->owner = owner; in desc_set_defaults() 389 struct module *owner) in alloc_desc() argument 409 desc_set_defaults(irq, desc, node, affinity, owner); in alloc_desc() 468 struct module *owner) in alloc_descs() argument 495 desc = alloc_desc(start + i, node, flags, mask, owner); in alloc_descs() 599 struct module *owner) in alloc_descs() argument 606 desc->owner = owner; in alloc_descs() 767 struct module *owner, const struct irq_affinity_desc *affinity) in __irq_alloc_descs() argument 800 ret = alloc_descs(start, cnt, node, affinity, owner); in __irq_alloc_descs()
|
D | devres.c | 179 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/time/ |
D | posix-clock.c | 150 .owner = THIS_MODULE, 175 clk->cdev.owner = clk->ops.owner; in posix_clock_register()
|
D | clockevents.c | 370 if (!try_module_get(dev->owner)) in clockevents_replace() 374 module_put(newdev->owner); in clockevents_replace() 577 module_put(old->owner); in clockevents_exchange_device()
|
D | test_udelay.c | 130 .owner = THIS_MODULE,
|
/kernel/cgroup/ |
D | cgroup-v1.c | 191 struct cgroup *owner; member 220 mutex_lock(&l->owner->pidlist_mutex); in cgroup_pidlist_destroy_work_fn() 233 mutex_unlock(&l->owner->pidlist_mutex); in cgroup_pidlist_destroy_work_fn() 322 l->owner = cgrp; in cgroup_pidlist_find_create()
|
D | namespace.c | 149 .owner = cgroupns_owner,
|
/kernel/trace/ |
D | trace_dynevent.c | 198 .owner = THIS_MODULE,
|