Home
last modified time | relevance | path

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

12

/kernel/
Dsysctl.c148 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
153 if (!data || !maxlen || !*lenp) { in _proc_do_string()
154 *lenp = 0; in _proc_do_string()
173 *ppos += *lenp; in _proc_do_string()
175 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
188 *lenp = 0; in _proc_do_string()
195 if (len > *lenp) in _proc_do_string()
196 len = *lenp; in _proc_do_string()
199 if (len < *lenp) { in _proc_do_string()
203 *lenp = len; in _proc_do_string()
[all …]
Dwatchdog.c669 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument
681 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
684 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
696 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument
699 table, write, buffer, lenp, ppos); in proc_watchdog()
706 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument
711 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
718 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument
721 table, write, buffer, lenp, ppos); in proc_soft_watchdog()
728 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument
[all …]
Dstackleak.c25 void __user *buffer, size_t *lenp, loff_t *ppos) in stack_erasing_sysctl() argument
33 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in stack_erasing_sysctl()
Dutsname_sysctl.c34 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_uts_string() argument
52 r = proc_dostring(&uts_table, write, buffer, lenp, ppos); in proc_do_uts_string()
Dlatencytop.c69 size_t *lenp, loff_t *ppos) in sysctl_latencytop() argument
73 err = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_latencytop()
Dhung_task.c248 size_t *lenp, loff_t *ppos) in proc_dohung_task_timeout_secs() argument
252 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_dohung_task_timeout_secs()
Ddelayacct.c50 size_t *lenp, loff_t *ppos) in sysctl_delayacct() argument
61 err = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_delayacct()
Dumh.c501 void *buffer, size_t *lenp, loff_t *ppos) in proc_cap_handler() argument
534 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_cap_handler()
Dpid_namespace.c277 void *buffer, size_t *lenp, loff_t *ppos) in pid_ns_ctl_handler() argument
295 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in pid_ns_ctl_handler()
Dseccomp.c2274 size_t *lenp, loff_t *ppos) in read_actions_logged() argument
2288 return proc_dostring(&table, 0, buffer, lenp, ppos); in read_actions_logged()
2292 size_t *lenp, loff_t *ppos, u32 *actions_logged) in write_actions_logged() argument
2306 ret = proc_dostring(&table, 1, buffer, lenp, ppos); in write_actions_logged()
2353 void *buffer, size_t *lenp, in seccomp_actions_logged_handler() argument
2362 ret = write_actions_logged(ro_table, buffer, lenp, ppos, in seccomp_actions_logged_handler()
2366 ret = read_actions_logged(ro_table, buffer, lenp, ppos); in seccomp_actions_logged_handler()
Dfork.c3411 void *buffer, size_t *lenp, loff_t *ppos) in sysctl_max_threads() argument
3424 ret = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_max_threads()
/kernel/printk/
Dsysctl.c15 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_sysadmin() argument
20 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
Dinternal.h10 void *buffer, size_t *lenp, loff_t *ppos);
Dprintk.c186 void *buffer, size_t *lenp, loff_t *ppos) in devkmsg_sysctl_set_loglvl() argument
200 err = proc_dostring(table, write, buffer, lenp, ppos); in devkmsg_sysctl_set_loglvl()
211 if (err < 0 || (err + 1 != *lenp)) { in devkmsg_sysctl_set_loglvl()
/kernel/events/
Dcallchain.c233 void *buffer, size_t *lenp, loff_t *ppos) in perf_event_max_stack_handler() argument
240 ret = proc_dointvec_minmax(&new_table, write, buffer, lenp, ppos); in perf_event_max_stack_handler()
Dcore.c454 void *buffer, size_t *lenp, loff_t *ppos) in perf_proc_update_handler() argument
464 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in perf_proc_update_handler()
478 void *buffer, size_t *lenp, loff_t *ppos) in perf_cpu_time_max_percent_handler() argument
480 int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in perf_cpu_time_max_percent_handler()
/kernel/sched/
Dpelt.c485 size_t *lenp, loff_t *ppos) in sched_pelt_multiplier() argument
493 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_pelt_multiplier()
Drt.c32 size_t *lenp, loff_t *ppos);
34 size_t *lenp, loff_t *ppos);
3100 size_t *lenp, loff_t *ppos) in sched_rt_handler() argument
3110 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_rt_handler()
3139 size_t *lenp, loff_t *ppos) in sched_rr_handler() argument
3145 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rr_handler()
Dtopology.c229 void *buffer, size_t *lenp, loff_t *ppos) in sched_energy_aware_handler() argument
236 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_energy_aware_handler()
Dcore.c1817 void *buffer, size_t *lenp, loff_t *ppos) in sysctl_sched_uclamp_handler() argument
1828 result = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_sched_uclamp_handler()
4606 void *buffer, size_t *lenp, loff_t *ppos) in sysctl_numa_balancing() argument
4617 err = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_numa_balancing()
4675 size_t *lenp, loff_t *ppos) in sysctl_schedstats() argument
4686 err = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_schedstats()
/kernel/trace/
Dtrace_stack.c518 size_t *lenp, loff_t *ppos) in stack_trace_sysctl() argument
526 ret = proc_dointvec(table, write, buffer, lenp, ppos); in stack_trace_sysctl()
Dftrace.c8413 void *buffer, size_t *lenp, loff_t *ppos) in ftrace_enable_sysctl() argument
8422 ret = proc_dointvec(table, write, buffer, lenp, ppos); in ftrace_enable_sysctl()
/kernel/bpf/
Dcgroup.c2002 size_t *lenp) in sysctl_cpy_dir() argument
2007 tmp_ret = sysctl_cpy_dir(dir->header.parent, bufp, lenp); in sysctl_cpy_dir()
2012 ret = strscpy(*bufp, dir->header.ctl_table[0].procname, *lenp); in sysctl_cpy_dir()
2016 *lenp -= ret; in sysctl_cpy_dir()
2023 tmp_ret = strscpy(*bufp, "/", *lenp); in sysctl_cpy_dir()
2027 *lenp -= tmp_ret; in sysctl_cpy_dir()
Dsyscall.c5260 void *buffer, size_t *lenp, loff_t *ppos) in bpf_stats_handler() argument
5278 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_stats_handler()
5295 void *buffer, size_t *lenp, loff_t *ppos) in bpf_unpriv_handler() argument
5305 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_unpriv_handler()
/kernel/time/
Dtimer.c246 void *buffer, size_t *lenp, loff_t *ppos) in timer_migration_handler() argument
251 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in timer_migration_handler()

12