/kernel/ |
D | sysctl.c | 212 static int proc_do_cad_pid(struct ctl_table *table, int write, 214 static int proc_taint(struct ctl_table *table, int write, 219 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write, 223 static int proc_dointvec_minmax_coredump(struct ctl_table *table, int write, 226 static int proc_dostring_coredump(struct ctl_table *table, int write, 229 static int proc_dopipe_max_size(struct ctl_table *table, int write, 236 static int sysrq_sysctl_handler(struct ctl_table *table, int write, in sysrq_sysctl_handler() argument 242 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler() 2076 static void warn_sysctl_write(struct ctl_table *table) in warn_sysctl_write() argument 2081 current->comm, table->procname); in warn_sysctl_write() [all …]
|
D | utsname_sysctl.c | 17 static void *get_uts(struct ctl_table *table) in get_uts() argument 19 char *which = table->data; in get_uts() 32 static int proc_do_uts_string(struct ctl_table *table, int write, in proc_do_uts_string() argument 39 memcpy(&uts_table, table, sizeof(uts_table)); in proc_do_uts_string() 49 memcpy(tmp_data, get_uts(table), sizeof(tmp_data)); in proc_do_uts_string() 61 memcpy(get_uts(table), tmp_data, sizeof(tmp_data)); in proc_do_uts_string() 63 proc_sys_poll_notify(table->poll); in proc_do_uts_string() 132 struct ctl_table *table = &uts_kern_table[proc]; in uts_proc_notify() local 134 proc_sys_poll_notify(table->poll); in uts_proc_notify()
|
D | watchdog.c | 680 static int proc_watchdog_common(int which, struct ctl_table *table, int write, in proc_watchdog_common() argument 683 int err, old, *param = table->data; in proc_watchdog_common() 693 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 696 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 707 int proc_watchdog(struct ctl_table *table, int write, in proc_watchdog() argument 711 table, write, buffer, lenp, ppos); in proc_watchdog() 717 int proc_nmi_watchdog(struct ctl_table *table, int write, in proc_nmi_watchdog() argument 723 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 729 int proc_soft_watchdog(struct ctl_table *table, int write, in proc_soft_watchdog() argument 733 table, write, buffer, lenp, ppos); in proc_soft_watchdog() [all …]
|
D | stackleak.c | 22 int stack_erasing_sysctl(struct ctl_table *table, int write, in stack_erasing_sysctl() argument 29 table->data = &state; in stack_erasing_sysctl() 30 table->maxlen = sizeof(int); in stack_erasing_sysctl() 31 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in stack_erasing_sysctl()
|
D | sysctl_binary.c | 1207 const struct bin_table *table = &bin_root_table[0]; in get_sysctl() local 1223 for ( ; table->convert; table++) { in get_sysctl() 1230 if (!table->ctl_name) { in get_sysctl() 1242 } else if (ctl_name == table->ctl_name) { in get_sysctl() 1243 len = strlen(table->procname); in get_sysctl() 1244 memcpy(path, table->procname, len); in get_sysctl() 1248 if (table->child) { in get_sysctl() 1250 table = table->child; in get_sysctl() 1254 return table; in get_sysctl() 1267 const struct bin_table *table = get_sysctl(name, nlen, tmp); in sysctl_getname() local [all …]
|
D | umh.c | 632 static int proc_cap_handler(struct ctl_table *table, int write, in proc_cap_handler() argument 650 if (table->data == CAP_BSET) in proc_cap_handler() 652 else if (table->data == CAP_PI) in proc_cap_handler() 659 t = *table; in proc_cap_handler() 682 if (table->data == CAP_BSET) in proc_cap_handler() 684 if (table->data == CAP_PI) in proc_cap_handler()
|
D | seccomp.c | 1682 struct ctl_table table; in read_actions_logged() local 1690 table = *ro_table; in read_actions_logged() 1691 table.data = names; in read_actions_logged() 1692 table.maxlen = sizeof(names); in read_actions_logged() 1693 return proc_dostring(&table, 0, buffer, lenp, ppos); in read_actions_logged() 1700 struct ctl_table table; in write_actions_logged() local 1708 table = *ro_table; in write_actions_logged() 1709 table.data = names; in write_actions_logged() 1710 table.maxlen = sizeof(names); in write_actions_logged() 1711 ret = proc_dostring(&table, 1, buffer, lenp, ppos); in write_actions_logged() [all …]
|
D | ucount.c | 35 struct ctl_table *table) in set_permissions() argument 43 mode = (table->mode & S_IRWXU) >> 6; in set_permissions() 46 mode = table->mode & S_IROTH; in set_permissions()
|
D | hung_task.c | 221 int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, in proc_dohung_task_timeout_secs() argument 227 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_dohung_task_timeout_secs()
|
D | latencytop.c | 272 int sysctl_latencytop(struct ctl_table *table, int write, in sysctl_latencytop() argument 277 err = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_latencytop()
|
D | pid_namespace.c | 267 static int pid_ns_ctl_handler(struct ctl_table *table, int write, in pid_ns_ctl_handler() argument 271 struct ctl_table tmp = *table; in pid_ns_ctl_handler()
|
D | kprobes.c | 873 int proc_kprobes_optimization_handler(struct ctl_table *table, int write, in proc_kprobes_optimization_handler() argument 881 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in proc_kprobes_optimization_handler()
|
D | fork.c | 2968 int sysctl_max_threads(struct ctl_table *table, int write, in sysctl_max_threads() argument 2977 t = *table; in sysctl_max_threads()
|
/kernel/power/ |
D | energy_model.c | 67 em_debug_create_cs(&pd->table[i], d); in em_debug_create_pd() 87 struct em_cap_state *table; in em_create_pd() local 98 table = kcalloc(nr_states, sizeof(*table), GFP_KERNEL); in em_create_pd() 99 if (!table) in em_create_pd() 133 table[i].power = power; in em_create_pd() 134 table[i].frequency = prev_freq = freq; in em_create_pd() 150 fmax = (u64) table[nr_states - 1].frequency; in em_create_pd() 152 table[i].cost = div64_u64(fmax * table[i].power, in em_create_pd() 153 table[i].frequency); in em_create_pd() 156 pd->table = table; in em_create_pd() [all …]
|
/kernel/sched/ |
D | debug.c | 251 struct ctl_table *table = sd_alloc_ctl_entry(9); in sd_alloc_ctl_domain_table() local 253 if (table == NULL) in sd_alloc_ctl_domain_table() 256 …set_table_entry(&table[0], "min_interval", &sd->min_interval, sizeof(long), 0644, proc_doulo… in sd_alloc_ctl_domain_table() 257 …set_table_entry(&table[1], "max_interval", &sd->max_interval, sizeof(long), 0644, proc_doulo… in sd_alloc_ctl_domain_table() 258 …set_table_entry(&table[2], "busy_factor", &sd->busy_factor, sizeof(int), 0644, proc_dointve… in sd_alloc_ctl_domain_table() 259 …set_table_entry(&table[3], "imbalance_pct", &sd->imbalance_pct, sizeof(int), 0644, proc_doi… in sd_alloc_ctl_domain_table() 260 …set_table_entry(&table[4], "cache_nice_tries", &sd->cache_nice_tries, sizeof(int), 0644, pro… in sd_alloc_ctl_domain_table() 261 set_table_entry(&table[5], "flags", &sd->flags, sizeof(int), 0644, proc_dointvec_minmax); in sd_alloc_ctl_domain_table() 262 …set_table_entry(&table[6], "max_newidle_lb_cost", &sd->max_newidle_lb_cost, sizeof(long), 0644, pr… in sd_alloc_ctl_domain_table() 263 set_table_entry(&table[7], "name", sd->name, CORENAME_MAX_SIZE, 0444, proc_dostring); in sd_alloc_ctl_domain_table() [all …]
|
D | rt.c | 2702 int sched_rt_handler(struct ctl_table *table, int write, in sched_rt_handler() argument 2714 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rt_handler() 2742 int sched_rr_handler(struct ctl_table *table, int write, in sched_rr_handler() argument 2750 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rr_handler()
|
D | core.c | 1114 int sysctl_sched_uclamp_handler(struct ctl_table *table, int write, in sysctl_sched_uclamp_handler() argument 1126 result = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_sched_uclamp_handler() 2738 int sysctl_numa_balancing(struct ctl_table *table, int write, in sysctl_numa_balancing() argument 2748 t = *table; in sysctl_numa_balancing() 2813 int sysctl_schedstats(struct ctl_table *table, int write, in sysctl_schedstats() argument 2823 t = *table; in sysctl_schedstats()
|
D | topology.c | 211 int sched_energy_aware_handler(struct ctl_table *table, int write, in sched_energy_aware_handler() argument 219 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_energy_aware_handler()
|
/kernel/events/ |
D | callchain.c | 238 int perf_event_max_stack_handler(struct ctl_table *table, int write, in perf_event_max_stack_handler() argument 241 int *value = table->data; in perf_event_max_stack_handler() 243 struct ctl_table new_table = *table; in perf_event_max_stack_handler()
|
D | core.c | 436 int perf_proc_update_handler(struct ctl_table *table, int write, in perf_proc_update_handler() argument 448 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in perf_proc_update_handler() 461 int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, in perf_cpu_time_max_percent_handler() argument 465 int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in perf_cpu_time_max_percent_handler()
|
/kernel/bpf/ |
D | cgroup.c | 882 struct ctl_table *table, int write, in __cgroup_bpf_run_filter_sysctl() argument 889 .table = table, in __cgroup_bpf_run_filter_sysctl() 908 if (table->proc_handler(table, 0, (void __user *)ctx.cur_val, in __cgroup_bpf_run_filter_sysctl() 1189 ret = strscpy(buf, ctx->table->procname, buf_len); in BPF_CALL_4()
|
/kernel/trace/ |
D | trace_stack.c | 518 stack_trace_sysctl(struct ctl_table *table, int write, in stack_trace_sysctl() argument 528 ret = proc_dointvec(table, write, buffer, lenp, ppos); in stack_trace_sysctl()
|
D | Kconfig | 540 compile time, a table is made of all the locations that ftrace 541 can function trace, and this table is linked into the kernel
|
/kernel/time/ |
D | timer.c | 251 int timer_migration_handler(struct ctl_table *table, int write, in timer_migration_handler() argument 258 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in timer_migration_handler()
|
/kernel/printk/ |
D | printk.c | 175 int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, in devkmsg_sysctl_set_loglvl() argument 190 err = proc_dostring(table, write, buffer, lenp, ppos); in devkmsg_sysctl_set_loglvl()
|