/kernel/ |
D | sysctl.c | 148 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument 165 if (*ppos > len) in _proc_do_string() 167 len = *ppos; in _proc_do_string() 173 *ppos += *lenp; in _proc_do_string() 187 if (*ppos > len) { in _proc_do_string() 192 data += *ppos; in _proc_do_string() 193 len -= *ppos; in _proc_do_string() 204 *ppos += len; in _proc_do_string() 226 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument 229 if (!*ppos) in proc_first_pos_non_zero_ignore() [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 | user_namespace.c | 662 static void *m_start(struct seq_file *seq, loff_t *ppos, in m_start() argument 665 loff_t pos = *ppos; in m_start() 678 static void *uid_m_start(struct seq_file *seq, loff_t *ppos) in uid_m_start() argument 682 return m_start(seq, ppos, &ns->uid_map); in uid_m_start() 685 static void *gid_m_start(struct seq_file *seq, loff_t *ppos) in gid_m_start() argument 689 return m_start(seq, ppos, &ns->gid_map); in gid_m_start() 692 static void *projid_m_start(struct seq_file *seq, loff_t *ppos) in projid_m_start() argument 696 return m_start(seq, ppos, &ns->projid_map); in projid_m_start() 921 size_t count, loff_t *ppos, in map_write() argument 935 if ((*ppos != 0) || (count >= PAGE_SIZE)) in map_write() [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 | profile.c | 450 read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos) in read_profile() argument 452 unsigned long p = *ppos; in read_profile() 473 *ppos += read; in read_profile() 490 size_t count, loff_t *ppos) in write_profile() argument
|
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 | relay.c | 1036 loff_t *ppos) in relay_file_read() argument 1069 *ppos = relay_file_read_end_pos(buf, read_start, ret); in relay_file_read() 1109 loff_t *ppos, in subbuf_splice_actor() argument 1118 uint64_t pos = (uint64_t) *ppos; in subbuf_splice_actor() 1201 loff_t *ppos, in relay_file_splice_read() argument 1214 ret = subbuf_splice_actor(in, ppos, pipe, len, flags, &nonpad_ret); in relay_file_splice_read() 1223 *ppos += ret; in relay_file_splice_read()
|
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()
|
/kernel/trace/rv/ |
D | rv.c | 213 loff_t *ppos) in monitor_enable_read_data() argument 220 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in monitor_enable_read_data() 283 size_t count, loff_t *ppos) in monitor_enable_write_data() argument 318 loff_t *ppos) in monitor_desc_read_data() argument 327 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitor_desc_read_data() 513 size_t count, loff_t *ppos) in enabled_monitors_write() argument 527 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in enabled_monitors_write() 597 size_t count, loff_t *ppos) in monitoring_on_read_data() argument 603 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitoring_on_read_data() 648 size_t count, loff_t *ppos) in monitoring_on_write_data() argument
|
D | rv_reactors.c | 188 size_t count, loff_t *ppos) in monitor_reactors_write() argument 204 retval = simple_write_to_buffer(buff, sizeof(buff) - 1, ppos, user_buf, count); in monitor_reactors_write() 376 size_t count, loff_t *ppos) in reacting_on_read_data() argument 382 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in reacting_on_read_data() 400 size_t count, loff_t *ppos) in reacting_on_write_data() argument
|
/kernel/trace/ |
D | trace.c | 1611 size_t cnt, loff_t *ppos) in trace_get_user() argument 1617 if (!*ppos) in trace_get_user() 1645 *ppos += read; in trace_get_user() 1680 *ppos += read; in trace_get_user() 2900 loff_t *ppos) in tracepoint_printk_sysctl() argument 2908 ret = proc_dointvec(table, write, buffer, lenp, ppos); in tracepoint_printk_sysctl() 5141 size_t count, loff_t *ppos) in tracing_write_stub() argument 5177 size_t count, loff_t *ppos) in tracing_cpumask_read() argument 5195 count = simple_read_from_buffer(ubuf, count, ppos, mask_str, len); in tracing_cpumask_read() 5245 size_t count, loff_t *ppos) in tracing_cpumask_write() argument [all …]
|
D | trace_stack.c | 325 size_t count, loff_t *ppos) in stack_max_size_read() argument 334 return simple_read_from_buffer(ubuf, count, ppos, buf, r); in stack_max_size_read() 339 size_t count, loff_t *ppos) in stack_max_size_write() argument 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 | trace_events.c | 1170 size_t cnt, loff_t *ppos) in ftrace_event_write() argument 1187 read = trace_get_user(&parser, ubuf, cnt, ppos); in ftrace_event_write() 1371 loff_t *ppos) in event_enable_read() argument 1396 return simple_read_from_buffer(ubuf, cnt, ppos, buf, strlen(buf)); in event_enable_read() 1401 loff_t *ppos) in event_enable_write() argument 1430 *ppos += cnt; in event_enable_write() 1437 loff_t *ppos) in system_enable_read() argument 1477 ret = simple_read_from_buffer(ubuf, cnt, ppos, buf, 2); in system_enable_read() 1484 loff_t *ppos) in system_enable_write() argument 1517 *ppos += cnt; in system_enable_write() [all …]
|
D | trace_events_inject.c | 285 loff_t *ppos) in event_inject_write() argument 319 *ppos += err; in event_inject_write() 325 loff_t *ppos) in event_inject_read() argument
|
D | trace_dynevent.c | 242 size_t count, loff_t *ppos) in dyn_event_write() argument 244 return trace_parse_run_command(file, buffer, count, ppos, in dyn_event_write()
|
/kernel/locking/ |
D | lock_events.c | 62 size_t count, loff_t *ppos) in lockevent_read() argument 80 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in lockevent_read() 89 size_t count, loff_t *ppos) in lockevent_write() argument
|
D | qspinlock_stat.h | 37 size_t count, loff_t *ppos) in lockevent_read() argument 94 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in lockevent_read()
|
/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);
|
/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()
|
/kernel/sched/ |
D | debug.c | 127 size_t cnt, loff_t *ppos) in sched_feat_write() argument 153 *ppos += cnt; in sched_feat_write() 174 size_t cnt, loff_t *ppos) in sched_scaling_write() argument 196 *ppos += cnt; in sched_scaling_write() 224 size_t cnt, loff_t *ppos) in sched_dynamic_write() argument 242 *ppos += cnt; in sched_dynamic_write()
|
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()
|