/kernel/ |
D | uid16.c | 67 int retval; in SYSCALL_DEFINE3() local 74 if (!(retval = put_user(ruid, ruidp)) && in SYSCALL_DEFINE3() 75 !(retval = put_user(euid, euidp))) in SYSCALL_DEFINE3() 76 retval = put_user(suid, suidp); in SYSCALL_DEFINE3() 78 return retval; in SYSCALL_DEFINE3() 90 int retval; in SYSCALL_DEFINE3() local 97 if (!(retval = put_user(rgid, rgidp)) && in SYSCALL_DEFINE3() 98 !(retval = put_user(egid, egidp))) in SYSCALL_DEFINE3() 99 retval = put_user(sgid, sgidp); in SYSCALL_DEFINE3() 101 return retval; in SYSCALL_DEFINE3() [all …]
|
D | umh.c | 72 int retval; in call_usermodehelper_exec_async() local 84 retval = -ENOMEM; in call_usermodehelper_exec_async() 96 retval = sub_info->init(sub_info, new); in call_usermodehelper_exec_async() 97 if (retval) { in call_usermodehelper_exec_async() 107 retval = do_execve_file(sub_info->file, in call_usermodehelper_exec_async() 109 if (!retval) in call_usermodehelper_exec_async() 112 retval = do_execve(getname_kernel(sub_info->path), in call_usermodehelper_exec_async() 116 sub_info->retval = retval; in call_usermodehelper_exec_async() 123 if (!retval) in call_usermodehelper_exec_async() 137 sub_info->retval = pid; in call_usermodehelper_exec_sync() [all …]
|
D | groups.c | 193 int retval; in SYSCALL_DEFINE2() local 203 retval = groups_from_user(group_info, grouplist); in SYSCALL_DEFINE2() 204 if (retval) { in SYSCALL_DEFINE2() 206 return retval; in SYSCALL_DEFINE2() 210 retval = set_current_groups(group_info); in SYSCALL_DEFINE2() 213 return retval; in SYSCALL_DEFINE2() 222 int retval = 1; in in_group_p() local 225 retval = groups_search(cred->group_info, grp); in in_group_p() 226 return retval; in in_group_p() 234 int retval = 1; in in_egroup_p() local [all …]
|
D | sys.c | 273 long niceval, retval = -ESRCH; in SYSCALL_DEFINE2() local 290 if (niceval > retval) in SYSCALL_DEFINE2() 291 retval = niceval; in SYSCALL_DEFINE2() 301 if (niceval > retval) in SYSCALL_DEFINE2() 302 retval = niceval; in SYSCALL_DEFINE2() 318 if (niceval > retval) in SYSCALL_DEFINE2() 319 retval = niceval; in SYSCALL_DEFINE2() 330 return retval; in SYSCALL_DEFINE2() 357 int retval; in __sys_setregid() local 373 retval = -EPERM; in __sys_setregid() [all …]
|
D | fork.c | 488 int retval; in dup_mmap() local 494 retval = -EINTR; in dup_mmap() 515 retval = ksm_fork(mm, oldmm); in dup_mmap() 516 if (retval) in dup_mmap() 518 retval = khugepaged_fork(mm, oldmm); in dup_mmap() 519 if (retval) in dup_mmap() 536 retval = -EINTR; in dup_mmap() 549 retval = vma_dup_policy(mpnt, tmp); in dup_mmap() 550 if (retval) in dup_mmap() 553 retval = dup_userfaultfd(tmp, &uf); in dup_mmap() [all …]
|
D | ptrace.c | 368 int retval; in ptrace_attach() local 370 retval = -EIO; in ptrace_attach() 383 retval = -EPERM; in ptrace_attach() 394 retval = -ERESTARTNOINTR; in ptrace_attach() 399 retval = __ptrace_may_access(task, PTRACE_MODE_ATTACH_REALCREDS); in ptrace_attach() 401 if (retval) in ptrace_attach() 405 retval = -EPERM; in ptrace_attach() 446 retval = 0; in ptrace_attach() 452 if (!retval) { in ptrace_attach() 464 return retval; in ptrace_attach() [all …]
|
D | fail_function.c | 29 unsigned long retval; member 69 attr->retval = adjust_error_retval(addr, 0); in fei_attr_new() 130 attr->retval = val; in fei_retval_set() 147 *val = attr->retval; in fei_retval_get() 177 regs_set_return_value(regs, attr->retval); in fei_kprobe_handler()
|
D | compat.c | 217 int retval; in COMPAT_SYSCALL_DEFINE3() local 222 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask); in COMPAT_SYSCALL_DEFINE3() 223 if (retval) in COMPAT_SYSCALL_DEFINE3() 226 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3() 229 return retval; in COMPAT_SYSCALL_DEFINE3()
|
D | exit.c | 291 int retval; in is_current_pgrp_orphaned() local 294 retval = will_become_orphaned_pgrp(task_pgrp(current), NULL); in is_current_pgrp_orphaned() 297 return retval; in is_current_pgrp_orphaned() 1422 int retval; in do_wait() local 1445 retval = do_wait_thread(wo, tsk); in do_wait() 1446 if (retval) in do_wait() 1449 retval = ptrace_do_wait(wo, tsk); in do_wait() 1450 if (retval) in do_wait() 1459 retval = wo->notask_error; in do_wait() 1460 if (!retval && !(wo->wo_flags & WNOHANG)) { in do_wait() [all …]
|
D | pid.c | 167 int retval = -ENOMEM; in alloc_pid() local 171 return ERR_PTR(retval); in alloc_pid() 199 retval = (nr == -ENOSPC) ? -EAGAIN : nr; in alloc_pid() 251 return ERR_PTR(retval); in alloc_pid()
|
D | resource.c | 312 int retval; in release_resource() local 315 retval = __release_resource(old, true); in release_resource() 317 return retval; in release_resource() 926 int retval; in remove_resource() local 929 retval = __release_resource(old, false); in remove_resource() 931 return retval; in remove_resource()
|
D | audit.c | 319 int retval = 0; in audit_rate_check() local 325 retval = 1; in audit_rate_check() 332 retval = 1; in audit_rate_check() 337 return retval; in audit_rate_check()
|
D | signal.c | 1421 int retval, success; in __kill_pgrp_info() local 1424 retval = -ESRCH; in __kill_pgrp_info() 1428 retval = err; in __kill_pgrp_info() 1430 return success ? 0 : retval; in __kill_pgrp_info() 1571 int retval = 0, count = 0; in kill_something_info() local 1581 retval = err; in kill_something_info() 1584 ret = count ? retval : -ESRCH; in kill_something_info()
|
/kernel/irq/ |
D | handle.c | 139 irqreturn_t retval = IRQ_NONE; in __handle_irq_event_percpu() local 178 retval |= res; in __handle_irq_event_percpu() 181 return retval; in __handle_irq_event_percpu() 186 irqreturn_t retval; in handle_irq_event_percpu() local 189 retval = __handle_irq_event_percpu(desc, &flags); in handle_irq_event_percpu() 194 note_interrupt(desc, retval); in handle_irq_event_percpu() 195 return retval; in handle_irq_event_percpu()
|
D | manage.c | 1663 int retval; in setup_irq() local 1669 retval = irq_chip_pm_get(&desc->irq_data); in setup_irq() 1670 if (retval < 0) in setup_irq() 1671 return retval; in setup_irq() 1673 retval = __setup_irq(irq, desc, act); in setup_irq() 1675 if (retval) in setup_irq() 1678 return retval; in setup_irq() 1980 int retval; in request_threaded_irq() local 2023 retval = irq_chip_pm_get(&desc->irq_data); in request_threaded_irq() 2024 if (retval < 0) { in request_threaded_irq() [all …]
|
D | chip.c | 1580 int retval; in irq_chip_pm_get() local 1583 retval = pm_runtime_get_sync(data->chip->parent_device); in irq_chip_pm_get() 1584 if (retval < 0) { in irq_chip_pm_get() 1586 return retval; in irq_chip_pm_get() 1603 int retval = 0; in irq_chip_pm_put() local 1606 retval = pm_runtime_put(data->chip->parent_device); in irq_chip_pm_put() 1608 return (retval < 0) ? retval : 0; in irq_chip_pm_put()
|
/kernel/cgroup/ |
D | cpuset.c | 1479 int retval; in update_cpumask() local 1495 retval = cpulist_parse(buf, trialcs->cpus_allowed); in update_cpumask() 1496 if (retval < 0) in update_cpumask() 1497 return retval; in update_cpumask() 1508 retval = validate_change(cs, trialcs); in update_cpumask() 1509 if (retval < 0) in update_cpumask() 1510 return retval; in update_cpumask() 1767 int retval; in update_nodemask() local 1774 retval = -EACCES; in update_nodemask() 1787 retval = nodelist_parse(buf, trialcs->mems_allowed); in update_nodemask() [all …]
|
D | cgroup-v1.c | 62 int retval = 0; in cgroup_attach_task_all() local 76 retval = cgroup_attach_task(from_cgrp, tsk, false); in cgroup_attach_task_all() 77 if (retval) in cgroup_attach_task_all() 83 return retval; in cgroup_attach_task_all()
|
D | cgroup.c | 5860 int retval; in proc_cgroup_show() local 5863 retval = -ENOMEM; in proc_cgroup_show() 5902 retval = cgroup_path_ns_locked(cgrp, buf, PATH_MAX, in proc_cgroup_show() 5904 if (retval >= PATH_MAX) in proc_cgroup_show() 5905 retval = -ENAMETOOLONG; in proc_cgroup_show() 5906 if (retval < 0) in proc_cgroup_show() 5920 retval = 0; in proc_cgroup_show() 5926 return retval; in proc_cgroup_show()
|
/kernel/power/ |
D | wakeup_reason.c | 193 int retval; in wakeup_reason_init() local 195 retval = register_pm_notifier(&wakeup_reason_pm_notifier_block); in wakeup_reason_init() 196 if (retval) in wakeup_reason_init() 198 __func__, retval); in wakeup_reason_init() 206 retval = sysfs_create_group(wakeup_reason, &attr_group); in wakeup_reason_init() 207 if (retval) { in wakeup_reason_init() 210 __func__, retval); in wakeup_reason_init()
|
D | qos.c | 501 int retval; in pm_qos_add_notifier() local 503 retval = blocking_notifier_chain_register( in pm_qos_add_notifier() 507 return retval; in pm_qos_add_notifier() 521 int retval; in pm_qos_remove_notifier() local 523 retval = blocking_notifier_chain_unregister( in pm_qos_remove_notifier() 527 return retval; in pm_qos_remove_notifier()
|
/kernel/sched/ |
D | core.c | 4575 long nice, retval; in SYSCALL_DEFINE1() local 4589 retval = security_task_setnice(current, nice); in SYSCALL_DEFINE1() 4590 if (retval) in SYSCALL_DEFINE1() 4591 return retval; in SYSCALL_DEFINE1() 4757 int retval, oldprio, oldpolicy = -1, queued, running; in __sched_setscheduler() local 4849 retval = security_task_setscheduler(p); in __sched_setscheduler() 4850 if (retval) in __sched_setscheduler() 4851 return retval; in __sched_setscheduler() 4856 retval = uclamp_validate(p, attr); in __sched_setscheduler() 4857 if (retval) in __sched_setscheduler() [all …]
|
/kernel/bpf/ |
D | cgroup.c | 1057 int retval) in __cgroup_bpf_run_filter_getsockopt() argument 1064 .retval = retval, in __cgroup_bpf_run_filter_getsockopt() 1074 return retval; in __cgroup_bpf_run_filter_getsockopt() 1082 if (!retval) { in __cgroup_bpf_run_filter_getsockopt() 1122 if (ctx.retval != 0 && ctx.retval != retval) { in __cgroup_bpf_run_filter_getsockopt() 1133 ret = ctx.retval; in __cgroup_bpf_run_filter_getsockopt() 1443 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access() 1478 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access() 1525 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_convert_ctx_access() 1527 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_STX_MEM, retval); in cg_sockopt_convert_ctx_access() [all …]
|
/kernel/locking/ |
D | mutex.c | 592 int retval = 1; in mutex_can_spin_on_owner() local 605 retval = owner->on_cpu && !vcpu_is_preempted(task_cpu(owner)); in mutex_can_spin_on_owner() 613 return retval; in mutex_can_spin_on_owner()
|
/kernel/rcu/ |
D | rcutorture.c | 1559 int retval; in rcutorture_booster_init() local 1572 retval = PTR_ERR(boost_tasks[cpu]); in rcutorture_booster_init() 1577 return retval; in rcutorture_booster_init()
|