Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 49) sorted by relevance

12

/kernel/
Dtracepoint.c142 static inline void release_probes(struct tracepoint_func *old) in release_probes() argument
144 if (old) { in release_probes()
145 struct tp_probes *tp_probes = container_of(old, in release_probes()
183 struct tracepoint_func *old, *new; in func_add() local
192 old = *funcs; in func_add()
193 if (old) { in func_add()
195 for (nr_probes = 0; old[nr_probes].func; nr_probes++) { in func_add()
197 if (pos < 0 && old[nr_probes].prio < prio) in func_add()
199 if (old[nr_probes].func == tp_func->func && in func_add()
200 old[nr_probes].data == tp_func->data) in func_add()
[all …]
Dcred.c256 const struct cred *old; in prepare_creds() local
267 old = task->cred; in prepare_creds()
268 memcpy(new, old, sizeof(struct cred)); in prepare_creds()
288 if (security_prepare_creds(new, old, GFP_KERNEL_ACCOUNT) < 0) in prepare_creds()
443 const struct cred *old = task->real_cred; in commit_creds() local
449 BUG_ON(task->cred != old); in commit_creds()
451 BUG_ON(read_cred_subscribers(old) < 2); in commit_creds()
452 validate_creds(old); in commit_creds()
460 if (!uid_eq(old->euid, new->euid) || in commit_creds()
461 !gid_eq(old->egid, new->egid) || in commit_creds()
[all …]
Dsys.c364 const struct cred *old; in __sys_setregid() local
380 old = current_cred(); in __sys_setregid()
384 if (gid_eq(old->gid, krgid) || in __sys_setregid()
385 gid_eq(old->egid, krgid) || in __sys_setregid()
386 ns_capable_setid(old->user_ns, CAP_SETGID)) in __sys_setregid()
392 if (gid_eq(old->gid, kegid) || in __sys_setregid()
393 gid_eq(old->egid, kegid) || in __sys_setregid()
394 gid_eq(old->sgid, kegid) || in __sys_setregid()
395 ns_capable_setid(old->user_ns, CAP_SETGID)) in __sys_setregid()
402 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid()
[all …]
Daudit_tree.c282 struct audit_chunk *old; in replace_mark_chunk() local
285 old = mark_chunk(mark); in replace_mark_chunk()
289 if (old) in replace_mark_chunk()
290 old->mark = NULL; in replace_mark_chunk()
293 static void replace_chunk(struct audit_chunk *new, struct audit_chunk *old) in replace_chunk() argument
298 new->key = old->key; in replace_chunk()
299 list_splice_init(&old->trees, &new->trees); in replace_chunk()
302 for (i = j = 0; j < old->count; i++, j++) { in replace_chunk()
303 if (!old->owners[j].owner) { in replace_chunk()
307 owner = old->owners[j].owner; in replace_chunk()
[all …]
Dresource.c213 static int __release_resource(struct resource *old, bool release_child) in __release_resource() argument
217 p = &old->parent->child; in __release_resource()
222 if (tmp == old) { in __release_resource()
234 old->parent = NULL; in __release_resource()
310 int release_resource(struct resource *old) in release_resource() argument
315 retval = __release_resource(old, true); in release_resource()
595 static int __find_resource(struct resource *root, struct resource *old, in __find_resource() argument
609 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource()
614 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource()
644 if (this != old) in __find_resource()
[all …]
Dauditfilter.c811 struct audit_entry *audit_dupe_rule(struct audit_krule *old) in audit_dupe_rule() argument
813 u32 fcount = old->field_count; in audit_dupe_rule()
824 new->flags = old->flags; in audit_dupe_rule()
825 new->pflags = old->pflags; in audit_dupe_rule()
826 new->listnr = old->listnr; in audit_dupe_rule()
827 new->action = old->action; in audit_dupe_rule()
829 new->mask[i] = old->mask[i]; in audit_dupe_rule()
830 new->prio = old->prio; in audit_dupe_rule()
831 new->buflen = old->buflen; in audit_dupe_rule()
832 new->inode_f = old->inode_f; in audit_dupe_rule()
[all …]
Daudit_watch.c202 static struct audit_watch *audit_dupe_watch(struct audit_watch *old) in audit_dupe_watch() argument
207 path = kstrdup(old->path, GFP_KERNEL); in audit_dupe_watch()
217 new->dev = old->dev; in audit_dupe_watch()
218 new->ino = old->ino; in audit_dupe_watch()
219 audit_get_parent(old->parent); in audit_dupe_watch()
220 new->parent = old->parent; in audit_dupe_watch()
505 int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old) in audit_dupe_exe() argument
510 pathname = kstrdup(audit_mark_path(old->exe), GFP_KERNEL); in audit_dupe_exe()
Dwatchdog.c656 int err, old, *param = table->data; in proc_watchdog_common() local
668 old = READ_ONCE(*param); in proc_watchdog_common()
670 if (!err && old != READ_ONCE(*param)) in proc_watchdog_common()
715 int err, old; in proc_watchdog_thresh() local
719 old = READ_ONCE(watchdog_thresh); in proc_watchdog_thresh()
722 if (!err && write && old != READ_ONCE(watchdog_thresh)) in proc_watchdog_thresh()
Ducount.c180 int c, old; in atomic_inc_below() local
185 old = atomic_cmpxchg(v, c, c+1); in atomic_inc_below()
186 if (likely(old == c)) in atomic_inc_below()
188 c = old; in atomic_inc_below()
Dexec_domain.c40 unsigned int old = current->personality; in SYSCALL_DEFINE1() local
45 return old; in SYSCALL_DEFINE1()
Daudit.c386 static int audit_log_config_change(char *function_name, u32 new, u32 old, in audit_log_config_change() argument
395 audit_log_format(ab, "op=set %s=%u old=%u ", function_name, new, old); in audit_log_config_change()
408 u32 old = *to_change; in audit_do_config_change() local
417 rc = audit_log_config_change(function_name, new, old, allow_changes); in audit_do_config_change()
1443 char *old, *new; in audit_receive_msg() local
1451 old = audit_unpack_string(&bufp, &msglen, sizes[0]); in audit_receive_msg()
1452 if (IS_ERR(old)) { in audit_receive_msg()
1453 err = PTR_ERR(old); in audit_receive_msg()
1459 kfree(old); in audit_receive_msg()
1463 err = audit_tag_tree(old, new); in audit_receive_msg()
[all …]
Daudit.h245 extern struct audit_entry *audit_dupe_rule(struct audit_krule *old);
276 extern int audit_dupe_exe(struct audit_krule *new, struct audit_krule *old);
288 extern int audit_tag_tree(char *old, char *new);
320 #define audit_tag_tree(old, new) -EINVAL argument
Dkexec_core.c722 kimage_entry_t *old; in kimage_alloc_page() local
750 old = kimage_dst_used(image, addr); in kimage_alloc_page()
751 if (old) { in kimage_alloc_page()
756 old_addr = *old & PAGE_MASK; in kimage_alloc_page()
759 *old = addr | (*old & ~PAGE_MASK); in kimage_alloc_page()
Dacct.c199 struct fs_pin *old; in acct_on() local
252 old = xchg(&ns->bacct, &acct->pin); in acct_on()
254 pin_kill(old); in acct_on()
/kernel/locking/
Dosq_lock.c48 int old; in osq_wait_next() local
55 old = prev ? prev->cpu : OSQ_UNLOCKED_VAL; in osq_wait_next()
59 atomic_cmpxchg_acquire(&lock->tail, curr, old) == curr) { in osq_wait_next()
95 int old; in osq_lock() local
107 old = atomic_xchg(&lock->tail, curr); in osq_lock()
108 if (old == OSQ_UNLOCKED_VAL) in osq_lock()
111 prev = decode_cpu(old); in osq_lock()
Dqspinlock.c222 u32 old, new, val = atomic_read(&lock->val); in xchg_tail() local
231 old = atomic_cmpxchg_relaxed(&lock->val, val, new); in xchg_tail()
232 if (old == val) in xchg_tail()
235 val = old; in xchg_tail()
237 return old; in xchg_tail()
318 u32 old, tail; in queued_spin_lock_slowpath() local
460 old = xchg_tail(lock, tail); in queued_spin_lock_slowpath()
467 if (old & _Q_TAIL_MASK) { in queued_spin_lock_slowpath()
468 prev = decode_tail(old); in queued_spin_lock_slowpath()
Dmutex.c115 unsigned long old, flags = __owner_flags(owner); in __mutex_trylock_or_owner() local
139 old = atomic_long_cmpxchg_acquire(&lock->owner, owner, curr | flags); in __mutex_trylock_or_owner()
140 if (old == owner) in __mutex_trylock_or_owner()
143 owner = old; in __mutex_trylock_or_owner()
246 unsigned long old, new; in __mutex_handoff() local
258 old = atomic_long_cmpxchg_release(&lock->owner, owner, new); in __mutex_handoff()
259 if (old == owner) in __mutex_handoff()
262 owner = old; in __mutex_handoff()
1270 unsigned long old; in __mutex_unlock_slowpath() local
1280 old = atomic_long_cmpxchg_release(&lock->owner, owner, in __mutex_unlock_slowpath()
[all …]
Dqspinlock_paravirt.h136 int old, new; in trylock_clear_pending() local
144 old = val; in trylock_clear_pending()
146 val = atomic_cmpxchg_acquire(&lock->val, old, new); in trylock_clear_pending()
148 if (val == old) in trylock_clear_pending()
/kernel/rcu/
Drcu.h123 static inline bool rcu_seq_completed_gp(unsigned long old, unsigned long new) in rcu_seq_completed_gp() argument
125 return ULONG_CMP_LT(old, new & ~RCU_SEQ_STATE_MASK); in rcu_seq_completed_gp()
131 static inline bool rcu_seq_new_gp(unsigned long old, unsigned long new) in rcu_seq_new_gp() argument
133 return ULONG_CMP_LT((old + RCU_SEQ_STATE_MASK) & ~RCU_SEQ_STATE_MASK, in rcu_seq_new_gp()
141 static inline unsigned long rcu_seq_diff(unsigned long new, unsigned long old) in rcu_seq_diff() argument
145 if (old == new) in rcu_seq_diff()
152 ((old + RCU_SEQ_STATE_MASK) & ~RCU_SEQ_STATE_MASK) + in rcu_seq_diff()
153 ((new & RCU_SEQ_STATE_MASK) || (old & RCU_SEQ_STATE_MASK)); in rcu_seq_diff()
Drcuscale.c134 unsigned long (*gp_diff)(unsigned long new, unsigned long old);
297 static unsigned long rcuscale_seq_diff(unsigned long new, unsigned long old) in rcuscale_seq_diff() argument
300 return new - old; in rcuscale_seq_diff()
301 return cur_ops->gp_diff(new, old); in rcuscale_seq_diff()
/kernel/bpf/
Ddispatcher.c107 void *old, *new; in bpf_dispatcher_update() local
112 old = NULL; in bpf_dispatcher_update()
115 old = d->image + d->image_off; in bpf_dispatcher_update()
125 err = bpf_arch_text_poke(d->func, BPF_MOD_JUMP, old, new); in bpf_dispatcher_update()
/kernel/sched/
Dpelt.c545 unsigned int old; in sched_pelt_multiplier() local
550 old = sysctl_sched_pelt_multiplier; in sched_pelt_multiplier()
557 trace_android_vh_sched_pelt_multiplier(old, sysctl_sched_pelt_multiplier, &ret); in sched_pelt_multiplier()
575 sysctl_sched_pelt_multiplier = old; in sched_pelt_multiplier()
/kernel/time/
Dclockevents.c569 void clockevents_exchange_device(struct clock_event_device *old, in clockevents_exchange_device() argument
576 if (old) { in clockevents_exchange_device()
577 module_put(old->owner); in clockevents_exchange_device()
578 clockevents_switch_state(old, CLOCK_EVT_STATE_DETACHED); in clockevents_exchange_device()
579 list_del(&old->list); in clockevents_exchange_device()
580 list_add(&old->list, &clockevents_released); in clockevents_exchange_device()
Dposix-cpu-timers.c573 struct itimerspec64 *new, struct itimerspec64 *old) in posix_cpu_timer_set() argument
640 if (old) { in posix_cpu_timer_set()
642 old->it_value.tv_sec = 0; in posix_cpu_timer_set()
643 old->it_value.tv_nsec = 0; in posix_cpu_timer_set()
656 old->it_value = ns_to_timespec64(old_expires); in posix_cpu_timer_set()
658 old->it_value.tv_nsec = 1; in posix_cpu_timer_set()
659 old->it_value.tv_sec = 0; in posix_cpu_timer_set()
718 if (old) in posix_cpu_timer_set()
719 old->it_interval = ns_to_timespec64(old_incr); in posix_cpu_timer_set()
/kernel/irq/
Dmanage.c1408 struct irqaction *old, **old_ptr; in __setup_irq() local
1515 old = *old_ptr; in __setup_irq()
1516 if (old) { in __setup_irq()
1545 if (!((old->flags & new->flags) & IRQF_SHARED) || in __setup_irq()
1547 ((old->flags ^ new->flags) & IRQF_ONESHOT)) in __setup_irq()
1551 if ((old->flags & IRQF_PERCPU) != in __setup_irq()
1562 thread_mask |= old->thread_mask; in __setup_irq()
1563 old_ptr = &old->next; in __setup_irq()
1564 old = *old_ptr; in __setup_irq()
1565 } while (old); in __setup_irq()
[all …]

12