/kernel/ |
D | sysctl.c | 209 static void warn_sysctl_write(struct ctl_table *table) in warn_sysctl_write() argument 214 current->comm, table->procname); in warn_sysctl_write() 227 struct ctl_table *table) in proc_first_pos_non_zero_ignore() argument 236 warn_sysctl_write(table); in proc_first_pos_non_zero_ignore() 260 int proc_dostring(struct ctl_table *table, int write, in proc_dostring() argument 264 proc_first_pos_non_zero_ignore(ppos, table); in proc_dostring() 266 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring() 487 static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table, in __do_proc_dointvec() argument 498 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec() 504 vleft = table->maxlen / sizeof(*i); in __do_proc_dointvec() [all …]
|
D | sysctl-test.c | 116 struct ctl_table table = { in sysctl_test_api_dointvec_table_len_is_zero() local 133 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_len_is_zero() 137 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE, buffer, in sysctl_test_api_dointvec_table_len_is_zero() 150 struct ctl_table table = { in sysctl_test_api_dointvec_table_read_but_position_set() local 172 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_read_but_position_set() 185 struct ctl_table table = { in sysctl_test_dointvec_read_happy_single_positive() local 199 *((int *)table.data) = 13; in sysctl_test_dointvec_read_happy_single_positive() 201 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, in sysctl_test_dointvec_read_happy_single_positive() 216 struct ctl_table table = { in sysctl_test_dointvec_read_happy_single_negative() local 229 *((int *)table.data) = -16; in sysctl_test_dointvec_read_happy_single_negative() [all …]
|
D | utsname_sysctl.c | 18 static void *get_uts(struct ctl_table *table) in get_uts() argument 20 char *which = table->data; in get_uts() 33 static int proc_do_uts_string(struct ctl_table *table, int write, in proc_do_uts_string() argument 40 memcpy(&uts_table, table, sizeof(uts_table)); in proc_do_uts_string() 50 memcpy(tmp_data, get_uts(table), sizeof(tmp_data)); in proc_do_uts_string() 63 memcpy(get_uts(table), tmp_data, sizeof(tmp_data)); in proc_do_uts_string() 65 proc_sys_poll_notify(table->poll); in proc_do_uts_string() 142 struct ctl_table *table = &uts_kern_table[proc]; in uts_proc_notify() local 144 proc_sys_poll_notify(table->poll); in uts_proc_notify()
|
D | watchdog.c | 668 static int proc_watchdog_common(int which, struct ctl_table *table, int write, in proc_watchdog_common() argument 671 int err, old, *param = table->data; in proc_watchdog_common() 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() 695 int proc_watchdog(struct ctl_table *table, int write, in proc_watchdog() argument 699 table, write, buffer, lenp, ppos); in proc_watchdog() 705 int proc_nmi_watchdog(struct ctl_table *table, int write, in proc_nmi_watchdog() argument 711 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 717 int proc_soft_watchdog(struct ctl_table *table, int write, in proc_soft_watchdog() argument 721 table, write, buffer, lenp, ppos); in proc_soft_watchdog() [all …]
|
D | stackleak.c | 24 static int stack_erasing_sysctl(struct ctl_table *table, int write, in stack_erasing_sysctl() argument 31 table->data = &state; in stack_erasing_sysctl() 32 table->maxlen = sizeof(int); in stack_erasing_sysctl() 33 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in stack_erasing_sysctl()
|
D | umh.c | 500 static int proc_cap_handler(struct ctl_table *table, int write, in proc_cap_handler() argument 518 if (table->data == CAP_BSET) in proc_cap_handler() 520 else if (table->data == CAP_PI) in proc_cap_handler() 527 t = *table; in proc_cap_handler() 550 if (table->data == CAP_BSET) in proc_cap_handler() 552 if (table->data == CAP_PI) in proc_cap_handler()
|
D | seccomp.c | 2277 struct ctl_table table; in read_actions_logged() local 2285 table = *ro_table; in read_actions_logged() 2286 table.data = names; in read_actions_logged() 2287 table.maxlen = sizeof(names); in read_actions_logged() 2288 return proc_dostring(&table, 0, buffer, lenp, ppos); in read_actions_logged() 2295 struct ctl_table table; in write_actions_logged() local 2303 table = *ro_table; in write_actions_logged() 2304 table.data = names; in write_actions_logged() 2305 table.maxlen = sizeof(names); in write_actions_logged() 2306 ret = proc_dostring(&table, 1, buffer, lenp, ppos); in write_actions_logged() [all …]
|
D | latencytop.c | 68 static int sysctl_latencytop(struct ctl_table *table, int write, void *buffer, in sysctl_latencytop() argument 73 err = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_latencytop()
|
D | ucount.c | 41 struct ctl_table *table) in set_permissions() argument 49 mode = (table->mode & S_IRWXU) >> 6; in set_permissions() 52 mode = table->mode & S_IROTH; in set_permissions()
|
D | hung_task.c | 246 static int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, 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 | 49 static int sysctl_delayacct(struct ctl_table *table, int write, void *buffer, in sysctl_delayacct() argument 59 t = *table; in sysctl_delayacct()
|
D | pid_namespace.c | 276 static int pid_ns_ctl_handler(struct ctl_table *table, int write, in pid_ns_ctl_handler() argument 280 struct ctl_table tmp = *table; in pid_ns_ctl_handler()
|
D | kprobes.c | 942 static int proc_kprobes_optimization_handler(struct ctl_table *table, in proc_kprobes_optimization_handler() argument 950 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in proc_kprobes_optimization_handler()
|
/kernel/power/ |
D | energy_model.c | 84 em_debug_create_ps(&dev->em_pd->table[i], d); in em_debug_create_pd() 111 struct em_perf_state *table; in em_create_perf_table() local 115 table = kcalloc(nr_states, sizeof(*table), GFP_KERNEL); in em_create_perf_table() 116 if (!table) in em_create_perf_table() 153 table[i].power = power; in em_create_perf_table() 154 table[i].frequency = prev_freq = freq; in em_create_perf_table() 158 fmax = (u64) table[nr_states - 1].frequency; in em_create_perf_table() 163 ret = cb->get_cost(dev, table[i].frequency, &cost); in em_create_perf_table() 170 power_res = table[i].power; in em_create_perf_table() 171 cost = div64_u64(fmax * power_res, table[i].frequency); in em_create_perf_table() [all …]
|
/kernel/events/ |
D | callchain.c | 232 int perf_event_max_stack_handler(struct ctl_table *table, int write, in perf_event_max_stack_handler() argument 235 int *value = table->data; in perf_event_max_stack_handler() 237 struct ctl_table new_table = *table; in perf_event_max_stack_handler()
|
/kernel/printk/ |
D | sysctl.c | 14 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write, in proc_dointvec_minmax_sysadmin() argument 20 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
|
D | internal.h | 9 int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
|
D | printk.c | 185 int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, in devkmsg_sysctl_set_loglvl() argument 200 err = proc_dostring(table, write, buffer, lenp, ppos); in devkmsg_sysctl_set_loglvl()
|
/kernel/sched/ |
D | pelt.c | 484 int sched_pelt_multiplier(struct ctl_table *table, int write, void *buffer, in sched_pelt_multiplier() argument 493 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_pelt_multiplier()
|
D | rt.c | 31 static int sched_rt_handler(struct ctl_table *table, int write, void *buffer, 33 static int sched_rr_handler(struct ctl_table *table, int write, void *buffer, 3099 static int sched_rt_handler(struct ctl_table *table, int write, void *buffer, in sched_rt_handler() argument 3110 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_rt_handler() 3138 static int sched_rr_handler(struct ctl_table *table, int write, void *buffer, in sched_rr_handler() argument 3145 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rr_handler()
|
D | topology.c | 228 static int sched_energy_aware_handler(struct ctl_table *table, int write, in sched_energy_aware_handler() argument 236 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_energy_aware_handler()
|
/kernel/trace/ |
D | trace_stack.c | 517 stack_trace_sysctl(struct ctl_table *table, int write, void *buffer, in stack_trace_sysctl() argument 526 ret = proc_dointvec(table, write, buffer, lenp, ppos); in stack_trace_sysctl()
|
/kernel/bpf/ |
D | cgroup.c | 1682 struct ctl_table *table, int write, in __cgroup_bpf_run_filter_sysctl() argument 1688 .table = table, in __cgroup_bpf_run_filter_sysctl() 1703 table->proc_handler(table, 0, ctx.cur_val, &ctx.cur_len, &pos)) { in __cgroup_bpf_run_filter_sysctl() 2048 ret = strscpy(buf, ctx->table->procname, buf_len); in BPF_CALL_4()
|
D | syscall.c | 5259 static int bpf_stats_handler(struct ctl_table *table, int write, in bpf_stats_handler() argument 5262 struct static_key *key = (struct static_key *)table->data; in bpf_stats_handler() 5268 .mode = table->mode, in bpf_stats_handler() 5294 static int bpf_unpriv_handler(struct ctl_table *table, int write, in bpf_unpriv_handler() argument 5297 int ret, unpriv_enable = *(int *)table->data; in bpf_unpriv_handler() 5299 struct ctl_table tmp = *table; in bpf_unpriv_handler() 5309 *(int *)table->data = unpriv_enable; in bpf_unpriv_handler()
|
/kernel/time/ |
D | timer.c | 245 static int timer_migration_handler(struct ctl_table *table, int write, in timer_migration_handler() argument 251 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in timer_migration_handler()
|