Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 26) sorted by relevance

12

/kernel/
Dumh.c69 int retval; in call_usermodehelper_exec_async() local
89 retval = -ENOMEM; in call_usermodehelper_exec_async()
101 retval = sub_info->init(sub_info, new); in call_usermodehelper_exec_async()
102 if (retval) { in call_usermodehelper_exec_async()
110 retval = kernel_execve(sub_info->path, in call_usermodehelper_exec_async()
114 sub_info->retval = retval; in call_usermodehelper_exec_async()
121 if (!retval) in call_usermodehelper_exec_async()
135 sub_info->retval = pid; in call_usermodehelper_exec_sync()
137 kernel_wait(pid, &sub_info->retval); in call_usermodehelper_exec_sync()
175 sub_info->retval = pid; in call_usermodehelper_exec_work()
[all …]
Duid16.c67 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 …]
Dgroups.c193 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 …]
Dsys.c282 long niceval, retval = -ESRCH; in SYSCALL_DEFINE2() local
299 if (niceval > retval) in SYSCALL_DEFINE2()
300 retval = niceval; in SYSCALL_DEFINE2()
310 if (niceval > retval) in SYSCALL_DEFINE2()
311 retval = niceval; in SYSCALL_DEFINE2()
327 if (niceval > retval) in SYSCALL_DEFINE2()
328 retval = niceval; in SYSCALL_DEFINE2()
339 return retval; in SYSCALL_DEFINE2()
366 int retval; in __sys_setregid() local
382 retval = -EPERM; in __sys_setregid()
[all …]
Dfork.c486 int retval; in dup_mmap() local
492 retval = -EINTR; in dup_mmap()
513 retval = ksm_fork(mm, oldmm); in dup_mmap()
514 if (retval) in dup_mmap()
516 retval = khugepaged_fork(mm, oldmm); in dup_mmap()
517 if (retval) in dup_mmap()
534 retval = -EINTR; in dup_mmap()
547 retval = vma_dup_policy(mpnt, tmp); in dup_mmap()
548 if (retval) in dup_mmap()
551 retval = dup_userfaultfd(tmp, &uf); in dup_mmap()
[all …]
Dptrace.c398 int retval; in ptrace_attach() local
400 retval = -EIO; in ptrace_attach()
411 retval = check_ptrace_options(flags); in ptrace_attach()
412 if (retval) in ptrace_attach()
413 return retval; in ptrace_attach()
421 retval = -EPERM; in ptrace_attach()
432 retval = -ERESTARTNOINTR; in ptrace_attach()
437 retval = __ptrace_may_access(task, PTRACE_MODE_ATTACH_REALCREDS); in ptrace_attach()
439 if (retval) in ptrace_attach()
443 retval = -EPERM; in ptrace_attach()
[all …]
Dfail_function.c29 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()
174 regs_set_return_value(regs, attr->retval); in fei_kprobe_handler()
Dcompat.c129 int retval; in COMPAT_SYSCALL_DEFINE3() local
134 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask); in COMPAT_SYSCALL_DEFINE3()
135 if (retval) in COMPAT_SYSCALL_DEFINE3()
138 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3()
141 return retval; in COMPAT_SYSCALL_DEFINE3()
Dpid.c167 int retval = -ENOMEM; in alloc_pid() local
182 return ERR_PTR(retval); in alloc_pid()
193 retval = -EINVAL; in alloc_pid()
202 retval = -EPERM; in alloc_pid()
240 retval = (nr == -ENOSPC) ? -EAGAIN : nr; in alloc_pid()
257 retval = -ENOMEM; in alloc_pid()
299 return ERR_PTR(retval); in alloc_pid()
Dexit.c339 int retval; in is_current_pgrp_orphaned() local
342 retval = will_become_orphaned_pgrp(task_pgrp(current), NULL); in is_current_pgrp_orphaned()
345 return retval; in is_current_pgrp_orphaned()
1507 int retval; in do_wait() local
1530 retval = do_wait_thread(wo, tsk); in do_wait()
1531 if (retval) in do_wait()
1534 retval = ptrace_do_wait(wo, tsk); in do_wait()
1535 if (retval) in do_wait()
1544 retval = wo->notask_error; in do_wait()
1545 if (!retval && !(wo->wo_flags & WNOHANG)) { in do_wait()
[all …]
Dresource.c312 int retval; in release_resource() local
315 retval = __release_resource(old, true); in release_resource()
317 return retval; in release_resource()
929 int retval; in remove_resource() local
932 retval = __release_resource(old, false); in remove_resource()
934 return retval; in remove_resource()
Dusermode_driver.c142 if (info->retval) in umd_cleanup()
Daudit.c325 int retval = 0; in audit_rate_check() local
331 retval = 1; in audit_rate_check()
338 retval = 1; in audit_rate_check()
343 return retval; in audit_rate_check()
Dsignal.c1439 int retval, success; in __kill_pgrp_info() local
1442 retval = -ESRCH; in __kill_pgrp_info()
1446 retval = err; in __kill_pgrp_info()
1448 return success ? 0 : retval; in __kill_pgrp_info()
1585 int retval = 0, count = 0; in kill_something_info() local
1595 retval = err; in kill_something_info()
1598 ret = count ? retval : -ESRCH; in kill_something_info()
/kernel/irq/
Dhandle.c139 irqreturn_t retval = IRQ_NONE; in __handle_irq_event_percpu() local
185 retval |= res; in __handle_irq_event_percpu()
188 return retval; in __handle_irq_event_percpu()
193 irqreturn_t retval; in handle_irq_event_percpu() local
196 retval = __handle_irq_event_percpu(desc, &flags); in handle_irq_event_percpu()
201 note_interrupt(desc, retval); in handle_irq_event_percpu()
202 return retval; in handle_irq_event_percpu()
Dmanage.c2048 int retval; in request_threaded_irq() local
2096 retval = irq_chip_pm_get(&desc->irq_data); in request_threaded_irq()
2097 if (retval < 0) { in request_threaded_irq()
2099 return retval; in request_threaded_irq()
2102 retval = __setup_irq(irq, desc, action); in request_threaded_irq()
2104 if (retval) { in request_threaded_irq()
2111 if (!retval && (irqflags & IRQF_SHARED)) { in request_threaded_irq()
2129 return retval; in request_threaded_irq()
2206 int retval; in request_nmi() local
2239 retval = irq_chip_pm_get(&desc->irq_data); in request_nmi()
[all …]
Dchip.c1621 int retval; in irq_chip_pm_get() local
1624 retval = pm_runtime_get_sync(data->chip->parent_device); in irq_chip_pm_get()
1625 if (retval < 0) { in irq_chip_pm_get()
1627 return retval; in irq_chip_pm_get()
1644 int retval = 0; in irq_chip_pm_put() local
1647 retval = pm_runtime_put(data->chip->parent_device); in irq_chip_pm_put()
1649 return (retval < 0) ? retval : 0; in irq_chip_pm_put()
/kernel/trace/
Dpreemptirq_delay_test.c179 int retval; in preemptirq_delay_init() local
181 retval = preemptirq_run_test(); in preemptirq_delay_init()
182 if (retval != 0) in preemptirq_delay_init()
183 return retval; in preemptirq_delay_init()
190 retval = sysfs_create_group(preemptirq_delay_kobj, &attr_group); in preemptirq_delay_init()
191 if (retval) in preemptirq_delay_init()
194 return retval; in preemptirq_delay_init()
/kernel/cgroup/
Dcpuset.c1589 int retval; in update_cpumask() local
1605 retval = cpulist_parse(buf, trialcs->cpus_requested); in update_cpumask()
1606 if (retval < 0) in update_cpumask()
1607 return retval; in update_cpumask()
1619 retval = validate_change(cs, trialcs); in update_cpumask()
1620 if (retval < 0) in update_cpumask()
1621 return retval; in update_cpumask()
1878 int retval; in update_nodemask() local
1885 retval = -EACCES; in update_nodemask()
1898 retval = nodelist_parse(buf, trialcs->mems_allowed); in update_nodemask()
[all …]
Dcgroup-v1.c58 int retval = 0; in cgroup_attach_task_all() local
73 retval = cgroup_attach_task(from_cgrp, tsk, false); in cgroup_attach_task_all()
74 if (retval) in cgroup_attach_task_all()
81 return retval; in cgroup_attach_task_all()
Dcgroup.c6008 int retval; in proc_cgroup_show() local
6011 retval = -ENOMEM; in proc_cgroup_show()
6050 retval = cgroup_path_ns_locked(cgrp, buf, PATH_MAX, in proc_cgroup_show()
6052 if (retval >= PATH_MAX) in proc_cgroup_show()
6053 retval = -ENAMETOOLONG; in proc_cgroup_show()
6054 if (retval < 0) in proc_cgroup_show()
6068 retval = 0; in proc_cgroup_show()
6074 return retval; in proc_cgroup_show()
/kernel/sched/
Dcore.c5318 long nice, retval; in SYSCALL_DEFINE1() local
5332 retval = security_task_setnice(current, nice); in SYSCALL_DEFINE1()
5333 if (retval) in SYSCALL_DEFINE1()
5334 return retval; in SYSCALL_DEFINE1()
5471 int retval, oldprio, newprio, queued, running; in __sched_setscheduler() local
5567 retval = security_task_setscheduler(p); in __sched_setscheduler()
5568 if (retval) in __sched_setscheduler()
5569 return retval; in __sched_setscheduler()
5574 retval = uclamp_validate(p, attr); in __sched_setscheduler()
5575 if (retval) in __sched_setscheduler()
[all …]
/kernel/bpf/
Dcgroup.c1459 int retval) in __cgroup_bpf_run_filter_getsockopt() argument
1466 .retval = retval, in __cgroup_bpf_run_filter_getsockopt()
1476 return retval; in __cgroup_bpf_run_filter_getsockopt()
1484 if (!retval) { in __cgroup_bpf_run_filter_getsockopt()
1527 if (ctx.retval != 0 && ctx.retval != retval) { in __cgroup_bpf_run_filter_getsockopt()
1543 ret = ctx.retval; in __cgroup_bpf_run_filter_getsockopt()
1852 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access()
1887 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access()
1934 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_convert_ctx_access()
1936 *insn++ = CG_SOCKOPT_ACCESS_FIELD(BPF_STX_MEM, retval); in cg_sockopt_convert_ctx_access()
[all …]
/kernel/locking/
Dmutex.c616 int retval = 1; in mutex_can_spin_on_owner() local
629 retval = owner->on_cpu && !vcpu_is_preempted(task_cpu(owner)); in mutex_can_spin_on_owner()
631 trace_android_vh_mutex_can_spin_on_owner(lock, &retval); in mutex_can_spin_on_owner()
638 return retval; in mutex_can_spin_on_owner()
/kernel/rcu/
Drcutorture.c1690 int retval; in rcutorture_booster_init() local
1703 retval = PTR_ERR(boost_tasks[cpu]); in rcutorture_booster_init()
1708 return retval; in rcutorture_booster_init()

12