Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 20 of 20) sorted by relevance

/kernel/
Dsysctl.c211 .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 …]
Dsysctl-test.c29 .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()
Dutsname_sysctl.c79 .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),
Dkallsyms.c59 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()
Dumh.c550 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long),
557 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long),
Dstackleak.c30 table->maxlen = sizeof(int); in stack_erasing_sysctl()
Dpanic.c83 .maxlen = sizeof(int),
93 .maxlen = sizeof(warn_limit),
Ducount.c58 .maxlen = sizeof(int), \
Dpid_namespace.c313 .maxlen = sizeof(int),
Dparams.c496 if (strlen(val)+1 > kps->maxlen) { in param_set_copystring()
498 kp->name, kps->maxlen-1); in param_set_copystring()
Dseccomp.c2229 table.maxlen = sizeof(names); in read_actions_logged()
2247 table.maxlen = sizeof(names); in write_actions_logged()
2323 .maxlen = sizeof(seccomp_actions_avail),
Dexit.c87 .maxlen = sizeof(oops_limit),
/kernel/trace/
Dtrace_probe_tmpl.h194 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()
Dtrace_dynevent.c360 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()
Dtrace_kprobe.c942 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()
Dtrace_dynevent.h120 extern void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen,
Dtrace_probe.h71 u32 maxlen = get_loc_len(loc); in update_data_loc() local
74 return make_data_loc(maxlen - consumed, offset + consumed); in update_data_loc()
Dtrace_uprobe.c153 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()
Dtrace_events_synth.c1425 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/
Ddebug.c238 const char *procname, void *data, int maxlen, in set_table_entry() argument
243 entry->maxlen = maxlen; in set_table_entry()