/kernel/ |
D | sysctl.c | 148 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 …]
|
D | watchdog.c | 669 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 …]
|
D | stackleak.c | 25 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()
|
D | utsname_sysctl.c | 34 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()
|
D | latencytop.c | 69 size_t *lenp, loff_t *ppos) in sysctl_latencytop() argument 73 err = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_latencytop()
|
D | hung_task.c | 248 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()
|
D | delayacct.c | 50 size_t *lenp, loff_t *ppos) in sysctl_delayacct() argument 61 err = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_delayacct()
|
D | umh.c | 501 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()
|
D | pid_namespace.c | 277 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()
|
D | seccomp.c | 2274 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()
|
D | fork.c | 3411 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/ |
D | sysctl.c | 15 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()
|
D | internal.h | 10 void *buffer, size_t *lenp, loff_t *ppos);
|
D | printk.c | 186 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/ |
D | callchain.c | 233 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()
|
D | core.c | 454 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/ |
D | pelt.c | 485 size_t *lenp, loff_t *ppos) in sched_pelt_multiplier() argument 493 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_pelt_multiplier()
|
D | rt.c | 32 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()
|
D | topology.c | 229 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()
|
D | core.c | 1817 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/ |
D | trace_stack.c | 518 size_t *lenp, loff_t *ppos) in stack_trace_sysctl() argument 526 ret = proc_dointvec(table, write, buffer, lenp, ppos); in stack_trace_sysctl()
|
D | ftrace.c | 8413 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/ |
D | cgroup.c | 2002 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()
|
D | syscall.c | 5260 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/ |
D | timer.c | 246 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()
|