Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 66) sorted by relevance

123

/kernel/
Dsysctl.c147 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 …]
Dwatchdog.c668 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 …]
Dstackleak.c24 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()
Dutsname_sysctl.c33 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()
Ddelayacct.c49 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()
Dumh.c500 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()
Dpid_namespace.c276 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()
Dhung_task.c246 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()
Dlatencytop.c68 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/
Dsysctl.c14 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()
Dinternal.h9 int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
Dprintk.c185 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/
Dtrace_stack.c371 .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()
Dring_buffer.c304 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 …]
Dtrace.c301 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/
Dcallchain.c232 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/
Dpelt.c484 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()
Drt.c31 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/
Drv.c310 .write = monitor_enable_write_data,
571 .write = enabled_monitors_write,
678 .write = monitoring_on_write_data,
Drv_reactors.c275 .write = monitor_reactors_write
430 .write = reacting_on_write_data,
/kernel/bpf/
Dcgroup.c1682 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/
Dcgroup.c1554 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/
Dlock_events.c114 .write = lockevent_write,
Dlocktorture.c739 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/
Dtest_udelay.c132 .write = udelay_test_write,

123