/kernel/ |
D | sysctl.c | 211 .maxlen = sizeof(val), in bpf_stats_handler() 268 static int _proc_do_string(char *data, int maxlen, int write, in _proc_do_string() argument 274 if (!data || !maxlen || !*lenp) { in _proc_do_string() 283 if (len > maxlen - 1) in _proc_do_string() 284 len = maxlen - 1; in _proc_do_string() 296 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string() 305 if (len > maxlen) in _proc_do_string() 306 len = maxlen; in _proc_do_string() 387 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring() 604 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec() [all …]
|
D | sysctl-test.c | 29 .maxlen = sizeof(int), in sysctl_test_api_dointvec_null_tbl_data() 79 .maxlen = 0, in sysctl_test_api_dointvec_table_maxlen_unset() 122 .maxlen = sizeof(int), in sysctl_test_api_dointvec_table_len_is_zero() 156 .maxlen = sizeof(int), in sysctl_test_api_dointvec_table_read_but_position_set() 191 .maxlen = sizeof(int), in sysctl_test_dointvec_read_happy_single_positive() 222 .maxlen = sizeof(int), in sysctl_test_dointvec_read_happy_single_negative() 251 .maxlen = sizeof(int), in sysctl_test_dointvec_write_happy_single_positive() 281 .maxlen = sizeof(int), in sysctl_test_dointvec_write_happy_single_negative() 313 .maxlen = sizeof(int), in sysctl_test_api_dointvec_write_single_less_int_min() 351 .maxlen = sizeof(int), in sysctl_test_api_dointvec_write_single_greater_int_max()
|
D | utsname_sysctl.c | 79 .maxlen = sizeof(init_uts_ns.name.sysname), 86 .maxlen = sizeof(init_uts_ns.name.release), 93 .maxlen = sizeof(init_uts_ns.name.version), 100 .maxlen = sizeof(init_uts_ns.name.nodename), 108 .maxlen = sizeof(init_uts_ns.name.domainname),
|
D | kallsyms.c | 59 char *result, size_t maxlen) in kallsyms_expand_symbol() argument 87 if (maxlen <= 1) in kallsyms_expand_symbol() 91 maxlen--; in kallsyms_expand_symbol() 99 if (maxlen) in kallsyms_expand_symbol()
|
D | umh.c | 550 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long), 557 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long),
|
D | stackleak.c | 30 table->maxlen = sizeof(int); in stack_erasing_sysctl()
|
D | panic.c | 83 .maxlen = sizeof(int), 93 .maxlen = sizeof(warn_limit),
|
D | ucount.c | 58 .maxlen = sizeof(int), \
|
D | pid_namespace.c | 313 .maxlen = sizeof(int),
|
D | params.c | 496 if (strlen(val)+1 > kps->maxlen) { in param_set_copystring() 498 kp->name, kps->maxlen-1); in param_set_copystring()
|
D | seccomp.c | 2229 table.maxlen = sizeof(names); in read_actions_logged() 2247 table.maxlen = sizeof(names); in write_actions_logged() 2323 .maxlen = sizeof(seccomp_actions_avail),
|
D | exit.c | 87 .maxlen = sizeof(oops_limit),
|
/kernel/trace/ |
D | trace_probe_tmpl.h | 194 int header_size, int maxlen) in store_trace_args() argument 207 *dl = make_data_loc(maxlen, dyndata - base); in store_trace_args() 214 maxlen -= ret; in store_trace_args()
|
D | trace_dynevent.c | 360 void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, in dynevent_cmd_init() argument 366 seq_buf_init(&cmd->seq, buf, maxlen); in dynevent_cmd_init()
|
D | trace_kprobe.c | 942 void kprobe_event_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen) in kprobe_event_cmd_init() argument 944 dynevent_cmd_init(cmd, buf, maxlen, DYNEVENT_TYPE_KPROBE, in kprobe_event_cmd_init() 1267 int maxlen = get_loc_len(*(u32 *)dest); in fetch_store_string_user() local 1271 if (unlikely(!maxlen)) in fetch_store_string_user() 1276 ret = strncpy_from_user_nofault(__dest, uaddr, maxlen); in fetch_store_string_user() 1290 int maxlen = get_loc_len(*(u32 *)dest); in fetch_store_string() local 1299 if (unlikely(!maxlen)) in fetch_store_string() 1308 ret = strncpy_from_kernel_nofault(__dest, (void *)addr, maxlen); in fetch_store_string()
|
D | trace_dynevent.h | 120 extern void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen,
|
D | trace_probe.h | 71 u32 maxlen = get_loc_len(loc); in update_data_loc() local 74 return make_data_loc(maxlen - consumed, offset + consumed); in update_data_loc()
|
D | trace_uprobe.c | 153 int maxlen = get_loc_len(loc); in fetch_store_string() local 157 if (unlikely(!maxlen)) in fetch_store_string() 161 ret = strlcpy(dst, current->comm, maxlen); in fetch_store_string() 163 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string() 165 if (ret == maxlen) in fetch_store_string()
|
D | trace_events_synth.c | 1425 void synth_event_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen) in synth_event_cmd_init() argument 1427 dynevent_cmd_init(cmd, buf, maxlen, DYNEVENT_TYPE_SYNTH, in synth_event_cmd_init()
|
/kernel/sched/ |
D | debug.c | 238 const char *procname, void *data, int maxlen, in set_table_entry() argument 243 entry->maxlen = maxlen; in set_table_entry()
|