Home
last modified time | relevance | path

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

12

/kernel/trace/rv/
Drv.c264 int retval; in rv_enable_monitor() local
271 retval = mdef->monitor->enable(); in rv_enable_monitor()
273 if (!retval) in rv_enable_monitor()
276 return retval; in rv_enable_monitor()
286 int retval; in monitor_enable_write_data() local
289 retval = kstrtobool_from_user(user_buf, count, &val); in monitor_enable_write_data()
290 if (retval) in monitor_enable_write_data()
291 return retval; in monitor_enable_write_data()
293 retval = count; in monitor_enable_write_data()
298 retval = rv_enable_monitor(mdef); in monitor_enable_write_data()
[all …]
Drv_reactors.c194 int retval = -EINVAL; in monitor_reactors_write() local
204 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in monitor_reactors_write()
205 if (retval < 0) in monitor_reactors_write()
222 retval = -EINVAL; in monitor_reactors_write()
235 retval = count; in monitor_reactors_write()
241 return retval; in monitor_reactors_write()
309 int retval = 0; in rv_register_reactor() local
318 retval = __rv_register_reactor(reactor); in rv_register_reactor()
320 return retval; in rv_register_reactor()
402 int retval; in reacting_on_write_data() local
[all …]
/kernel/
Dgroups.c138 int retval; in set_current_groups() local
148 retval = security_task_fix_setgroups(new, old); in set_current_groups()
149 if (retval < 0) in set_current_groups()
156 return retval; in set_current_groups()
201 int retval; in SYSCALL_DEFINE2() local
211 retval = groups_from_user(group_info, grouplist); in SYSCALL_DEFINE2()
212 if (retval) { in SYSCALL_DEFINE2()
214 return retval; in SYSCALL_DEFINE2()
218 retval = set_current_groups(group_info); in SYSCALL_DEFINE2()
221 return retval; in SYSCALL_DEFINE2()
[all …]
Dumh.c71 int retval; in call_usermodehelper_exec_async() local
91 retval = -ENOMEM; in call_usermodehelper_exec_async()
103 retval = sub_info->init(sub_info, new); in call_usermodehelper_exec_async()
104 if (retval) { in call_usermodehelper_exec_async()
113 retval = kernel_execve(sub_info->path, in call_usermodehelper_exec_async()
117 sub_info->retval = retval; in call_usermodehelper_exec_async()
124 if (!retval) in call_usermodehelper_exec_async()
138 sub_info->retval = pid; in call_usermodehelper_exec_sync()
140 kernel_wait(pid, &sub_info->retval); in call_usermodehelper_exec_sync()
178 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 …]
Dsys.c288 long niceval, retval = -ESRCH; in SYSCALL_DEFINE2() local
304 if (niceval > retval) in SYSCALL_DEFINE2()
305 retval = niceval; in SYSCALL_DEFINE2()
316 if (niceval > retval) in SYSCALL_DEFINE2()
317 retval = niceval; in SYSCALL_DEFINE2()
334 if (niceval > retval) in SYSCALL_DEFINE2()
335 retval = niceval; in SYSCALL_DEFINE2()
345 return retval; in SYSCALL_DEFINE2()
372 int retval; in __sys_setregid() local
388 retval = -EPERM; in __sys_setregid()
[all …]
Dfork.c659 int retval; in dup_mmap() local
666 retval = -EINTR; in dup_mmap()
684 retval = ksm_fork(mm, oldmm); in dup_mmap()
685 if (retval) in dup_mmap()
690 retval = __mt_dup(&oldmm->mm_mt, &mm->mm_mt, GFP_KERNEL); in dup_mmap()
691 if (unlikely(retval)) in dup_mmap()
703 retval = -ENOMEM; in dup_mmap()
715 retval = -EINTR; in dup_mmap()
728 retval = vma_dup_policy(mpnt, tmp); in dup_mmap()
729 if (retval) in dup_mmap()
[all …]
Dptrace.c393 int retval; in ptrace_attach() local
395 retval = -EIO; in ptrace_attach()
406 retval = check_ptrace_options(flags); in ptrace_attach()
407 if (retval) in ptrace_attach()
408 return retval; in ptrace_attach()
416 retval = -EPERM; in ptrace_attach()
427 retval = -ERESTARTNOINTR; in ptrace_attach()
432 retval = __ptrace_may_access(task, PTRACE_MODE_ATTACH_REALCREDS); in ptrace_attach()
434 if (retval) in ptrace_attach()
438 retval = -EPERM; in ptrace_attach()
[all …]
Dexit.c348 int retval; in is_current_pgrp_orphaned() local
351 retval = will_become_orphaned_pgrp(task_pgrp(current), NULL); in is_current_pgrp_orphaned()
354 return retval; in is_current_pgrp_orphaned()
1564 int retval; in do_wait_pid() local
1569 retval = wait_consider_task(wo, ptrace, target); in do_wait_pid()
1570 if (retval) in do_wait_pid()
1571 return retval; in do_wait_pid()
1578 retval = wait_consider_task(wo, ptrace, target); in do_wait_pid()
1579 if (retval) in do_wait_pid()
1580 return retval; in do_wait_pid()
[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()
/kernel/module/
Ddecompress.c91 ssize_t retval; in module_gzip_decompress() local
110 retval = -EINVAL; in module_gzip_decompress()
118 retval = PTR_ERR(page); in module_gzip_decompress()
132 retval = -EINVAL; in module_gzip_decompress()
136 retval = new_size; in module_gzip_decompress()
142 return retval; in module_gzip_decompress()
157 ssize_t retval; in module_xz_decompress() local
177 retval = PTR_ERR(page); in module_xz_decompress()
192 retval = -EINVAL; in module_xz_decompress()
196 retval = new_size; in module_xz_decompress()
[all …]
/kernel/irq/
Dhandle.c141 irqreturn_t retval = IRQ_NONE; in __handle_irq_event_percpu() local
183 retval |= res; in __handle_irq_event_percpu()
186 return retval; in __handle_irq_event_percpu()
191 irqreturn_t retval; in handle_irq_event_percpu() local
193 retval = __handle_irq_event_percpu(desc); in handle_irq_event_percpu()
198 note_interrupt(desc, retval); in handle_irq_event_percpu()
199 return retval; in handle_irq_event_percpu()
Dmanage.c2145 int retval; in request_threaded_irq() local
2193 retval = irq_chip_pm_get(&desc->irq_data); in request_threaded_irq()
2194 if (retval < 0) { in request_threaded_irq()
2196 return retval; in request_threaded_irq()
2199 retval = __setup_irq(irq, desc, action); in request_threaded_irq()
2201 if (retval) { in request_threaded_irq()
2208 if (!retval && (irqflags & IRQF_SHARED)) { in request_threaded_irq()
2226 return retval; in request_threaded_irq()
2303 int retval; in request_nmi() local
2336 retval = irq_chip_pm_get(&desc->irq_data); in request_nmi()
[all …]
Dchip.c1597 int retval = 0; in irq_chip_pm_get() local
1600 retval = pm_runtime_resume_and_get(dev); in irq_chip_pm_get()
1602 return retval; in irq_chip_pm_get()
1616 int retval = 0; in irq_chip_pm_put() local
1619 retval = pm_runtime_put(dev); in irq_chip_pm_put()
1621 return (retval < 0) ? retval : 0; in irq_chip_pm_put()
/kernel/trace/
Dpreemptirq_delay_test.c193 int retval; in preemptirq_delay_init() local
195 retval = preemptirq_run_test(); in preemptirq_delay_init()
196 if (retval != 0) in preemptirq_delay_init()
197 return retval; in preemptirq_delay_init()
204 retval = sysfs_create_group(preemptirq_delay_kobj, &attr_group); in preemptirq_delay_init()
205 if (retval) in preemptirq_delay_init()
208 return retval; in preemptirq_delay_init()
Dtrace_osnoise.c1777 int retval = 0; in start_per_cpu_kthreads() local
1790 retval = start_kthread(cpu); in start_per_cpu_kthreads()
1791 if (retval) { in start_per_cpu_kthreads()
1794 return retval; in start_per_cpu_kthreads()
1800 return retval; in start_per_cpu_kthreads()
2147 int retval; in osnoise_hook_events() local
2156 retval = hook_irq_events(); in osnoise_hook_events()
2157 if (retval) in osnoise_hook_events()
2160 retval = hook_softirq_events(); in osnoise_hook_events()
2161 if (retval) in osnoise_hook_events()
[all …]
Dtrace_hwlat.c583 int retval; in start_per_cpu_kthreads() local
592 retval = start_cpu_kthread(cpu); in start_per_cpu_kthreads()
593 if (retval) in start_per_cpu_kthreads()
603 return retval; in start_per_cpu_kthreads()
/kernel/cgroup/
Dcpuset.c1810 int retval; in update_cpumask() local
1827 retval = cpulist_parse(buf, trialcs->cpus_requested); in update_cpumask()
1828 if (retval < 0) in update_cpumask()
1829 return retval; in update_cpumask()
1854 retval = validate_change(cs, trialcs); in update_cpumask()
1856 if ((retval == -EINVAL) && cgroup_subsys_on_dfl(cpuset_cgrp_subsys)) { in update_cpumask()
1878 retval = 0; in update_cpumask()
1880 if (retval < 0) in update_cpumask()
1881 return retval; in update_cpumask()
2151 int retval; in update_nodemask() local
[all …]
/kernel/trace/rv/monitors/wwnr/
Dwwnr.c40 int retval; in enable_wwnr() local
42 retval = da_monitor_init_wwnr(); in enable_wwnr()
43 if (retval) in enable_wwnr()
44 return retval; in enable_wwnr()
/kernel/trace/rv/monitors/wip/
Dwip.c39 int retval; in enable_wip() local
41 retval = da_monitor_init_wip(); in enable_wip()
42 if (retval) in enable_wip()
43 return retval; in enable_wip()
/kernel/sched/
Dcore.c7320 long nice, retval; in SYSCALL_DEFINE1() local
7334 retval = security_task_setnice(current, nice); in SYSCALL_DEFINE1()
7335 if (retval) in SYSCALL_DEFINE1()
7336 return retval; in SYSCALL_DEFINE1()
7660 int retval, oldprio, newprio, queued, running; in __sched_setscheduler() local
7698 retval = user_check_sched_setscheduler(p, attr, policy, reset_on_fork); in __sched_setscheduler()
7699 if (retval) in __sched_setscheduler()
7700 return retval; in __sched_setscheduler()
7705 retval = security_task_setscheduler(p); in __sched_setscheduler()
7706 if (retval) in __sched_setscheduler()
[all …]
/kernel/bpf/
Dcgroup.c34 int retval, u32 *ret_flags) in bpf_prog_run_array_cg() argument
43 run_ctx.retval = retval; in bpf_prog_run_array_cg()
56 if (!func_ret && !IS_ERR_VALUE((long)run_ctx.retval)) in bpf_prog_run_array_cg()
57 run_ctx.retval = -EPERM; in bpf_prog_run_array_cg()
63 return run_ctx.retval; in bpf_prog_run_array_cg()
1576 return ctx->retval; in BPF_CALL_0()
1585 BPF_CALL_1(bpf_set_retval, int, retval) in BPF_CALL_1() argument
1590 ctx->retval = retval; in BPF_CALL_1()
1880 int retval) in __cgroup_bpf_run_filter_getsockopt() argument
1899 if (!retval) { in __cgroup_bpf_run_filter_getsockopt()
[all …]
/kernel/locking/
Dmutex.c411 int retval = 1; in mutex_can_spin_on_owner() local
425 retval = owner_on_cpu(owner); in mutex_can_spin_on_owner()
426 trace_android_vh_mutex_can_spin_on_owner(lock, &retval); in mutex_can_spin_on_owner()
433 return retval; in mutex_can_spin_on_owner()

12