/kernel/ |
D | sysctl.c | 147 static int _proc_do_string(char *data, int maxlen, int write, in _proc_do_string() argument 158 if (write) { in _proc_do_string() 260 int proc_dostring(struct ctl_table *table, int write, in proc_dostring() argument 263 if (write) in proc_dostring() 266 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring() 430 int write, void *data) in do_proc_dobool_conv() argument 432 if (write) { in do_proc_dobool_conv() 445 int write, void *data) in do_proc_dointvec_conv() argument 447 if (write) { in do_proc_dointvec_conv() 472 int write, void *data) in do_proc_douintvec_conv() argument [all …]
|
D | watchdog.c | 668 static int proc_watchdog_common(int which, struct ctl_table *table, int write, in proc_watchdog_common() argument 675 if (!write) { 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 708 if (!nmi_watchdog_available && write) in proc_nmi_watchdog() 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 [all …]
|
D | stackleak.c | 24 static int stack_erasing_sysctl(struct ctl_table *table, int write, in stack_erasing_sysctl() argument 33 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in stack_erasing_sysctl() 35 if (ret || !write || state == prev_state) in stack_erasing_sysctl()
|
D | utsname_sysctl.c | 33 static int proc_do_uts_string(struct ctl_table *table, int write, in proc_do_uts_string() argument 52 r = proc_dostring(&uts_table, write, buffer, lenp, ppos); in proc_do_uts_string() 54 if (write) { in proc_do_uts_string()
|
D | delayacct.c | 49 static int sysctl_delayacct(struct ctl_table *table, int write, void *buffer, in sysctl_delayacct() argument 56 if (write && !capable(CAP_SYS_ADMIN)) in sysctl_delayacct() 61 err = proc_dointvec_minmax(&t, write, buffer, lenp, ppos); in sysctl_delayacct() 64 if (write) in sysctl_delayacct()
|
D | umh.c | 500 static int proc_cap_handler(struct ctl_table *table, int write, in proc_cap_handler() argument 508 if (write && (!capable(CAP_SETPCAP) || in proc_cap_handler() 534 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_cap_handler() 548 if (write) { in proc_cap_handler()
|
D | pid_namespace.c | 276 static int pid_ns_ctl_handler(struct ctl_table *table, int write, in pid_ns_ctl_handler() argument 283 if (write && !checkpoint_restore_ns_capable(pid_ns->user_ns)) in pid_ns_ctl_handler() 295 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in pid_ns_ctl_handler() 296 if (!ret && write) in pid_ns_ctl_handler()
|
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() 254 if (ret || !write) in proc_dohung_task_timeout_secs()
|
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()
|
/kernel/printk/ |
D | sysctl.c | 14 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write, in proc_dointvec_minmax_sysadmin() argument 17 if (write && !capable(CAP_SYS_ADMIN)) in proc_dointvec_minmax_sysadmin() 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 192 if (write) { in devkmsg_sysctl_set_loglvl() 200 err = proc_dostring(table, write, buffer, lenp, ppos); in devkmsg_sysctl_set_loglvl() 204 if (write) { in devkmsg_sysctl_set_loglvl() 1941 con->write(con, dropped_text, dropped_len); in call_console_driver() 1944 con->write(con, text, len); in call_console_driver() 2360 early_console->write(early_console, buf, n); in early_printk() 2654 if (!con->write) in console_is_usable() 3350 init_section_contains(con->write, 0) || in printk_late_init()
|
/kernel/trace/ |
D | trace_stack.c | 371 .write = stack_max_size_write, 509 .write = ftrace_filter_write, 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() 528 if (ret || !write || (was_enabled == !!stack_tracer_enabled)) in stack_trace_sysctl()
|
D | ring_buffer.c | 304 local_t write; /* index for next write */ member 708 long commit, write; in verify_event() local 718 write = local_read(&page->write); in verify_event() 720 addr < (unsigned long)&page->page->data[write]) in verify_event() 1467 old_write = local_add_return(RB_WRITE_INTCNT, &next_page->write); in rb_tail_page_update() 1497 (void)local_cmpxchg(&next_page->write, old_write, val); in rb_tail_page_update() 1890 return local_read(&bpage->write) & RB_WRITE_MASK; in rb_page_write() 2616 local_sub(length, &tail_page->write); in rb_reset_tail() 2651 local_sub(length, &tail_page->write); in rb_reset_tail() 2669 local_sub(length, &tail_page->write); in rb_reset_tail() [all …]
|
D | trace.c | 301 export->write(export, entry, size); in trace_process_export() 403 if (WARN_ON_ONCE(!export->write)) in register_ftrace_export() 2898 int tracepoint_printk_sysctl(struct ctl_table *table, int write, in tracepoint_printk_sysctl() argument 2908 ret = proc_dointvec(table, write, buffer, lenp, ppos); in tracepoint_printk_sysctl() 5163 .write = tracing_write_stub, 5275 .write = tracing_cpumask_write, 5528 .write = tracing_trace_options_write, 6021 .write = tracing_saved_cmdlines_size_write, 7654 .write = tracing_thresh_write, 7662 .write = tracing_max_lat_write, [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 240 ret = proc_dointvec_minmax(&new_table, write, buffer, lenp, ppos); in perf_event_max_stack_handler() 241 if (ret || !write) in perf_event_max_stack_handler()
|
/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() 496 if (!write) 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() 3112 if (!ret && write) { 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() 3150 if (!ret && write) { in sched_rr_handler()
|
/kernel/trace/rv/ |
D | rv.c | 310 .write = monitor_enable_write_data, 571 .write = enabled_monitors_write, 678 .write = monitoring_on_write_data,
|
D | rv_reactors.c | 275 .write = monitor_reactors_write 430 .write = reacting_on_write_data,
|
/kernel/bpf/ |
D | cgroup.c | 1682 struct ctl_table *table, int write, in __cgroup_bpf_run_filter_sysctl() argument 1689 .write = write, in __cgroup_bpf_run_filter_sysctl() 1708 if (write && *buf && *pcount) { in __cgroup_bpf_run_filter_sysctl() 2107 if (!ctx->write) { in BPF_CALL_3() 2127 if (!ctx->write || !ctx->new_val || !ctx->new_len || !buf || !buf_len) in BPF_CALL_3() 2190 case bpf_ctx_range(struct bpf_sysctl, write): in sysctl_is_valid_access() 2216 case offsetof(struct bpf_sysctl, write): in sysctl_convert_ctx_access() 2219 bpf_target_off(struct bpf_sysctl_kern, write, in sysctl_convert_ctx_access() 2221 write), in sysctl_convert_ctx_access()
|
/kernel/cgroup/ |
D | cgroup.c | 1554 if (cft->write_u64 || cft->write_s64 || cft->write) { in cgroup_file_mode() 4089 if (cft->write) in cgroup_file_write() 4090 return cft->write(of, buf, nbytes, off); in cgroup_file_write() 4166 .write = cgroup_file_write, 4175 .write = cgroup_file_write, 5227 .write = cgroup_type_write, 5237 .write = cgroup_procs_write, 5246 .write = cgroup_threads_write, 5256 .write = cgroup_subtree_control_write, 5267 .write = cgroup_max_descendants_write, [all …]
|
/kernel/locking/ |
D | lock_events.c | 114 .write = lockevent_write,
|
D | locktorture.c | 739 struct lock_stress_stats *statp, bool write) in __torture_print_stats() argument 747 n_stress = write ? cxt.nrealwriters_stress : cxt.nrealreaders_stress; in __torture_print_stats() 760 write ? "Writes" : "Reads ", in __torture_print_stats()
|
/kernel/time/ |
D | test_udelay.c | 132 .write = udelay_test_write,
|