Home
last modified time | relevance | path

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

12

/kernel/
Dsysctl.c147 static int _proc_do_string(char *data, int maxlen, int write, in _proc_do_string() argument
153 if (!data || !maxlen || !*lenp) { in _proc_do_string()
162 if (len > maxlen - 1) in _proc_do_string()
163 len = maxlen - 1; in _proc_do_string()
175 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
184 if (len > maxlen) in _proc_do_string()
185 len = maxlen; in _proc_do_string()
266 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring()
498 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
504 vleft = table->maxlen / sizeof(*i); in __do_proc_dointvec()
[all …]
Dutsname_sysctl.c82 .maxlen = sizeof(init_uts_ns.name.machine),
89 .maxlen = sizeof(init_uts_ns.name.sysname),
96 .maxlen = sizeof(init_uts_ns.name.release),
103 .maxlen = sizeof(init_uts_ns.name.version),
110 .maxlen = sizeof(init_uts_ns.name.nodename),
118 .maxlen = sizeof(init_uts_ns.name.domainname),
Dsysctl-test.c26 .maxlen = sizeof(int), in sysctl_test_api_dointvec_null_tbl_data()
76 .maxlen = 0, in sysctl_test_api_dointvec_table_maxlen_unset()
119 .maxlen = sizeof(int), in sysctl_test_api_dointvec_table_len_is_zero()
153 .maxlen = sizeof(int), in sysctl_test_api_dointvec_table_read_but_position_set()
188 .maxlen = sizeof(int), in sysctl_test_dointvec_read_happy_single_positive()
219 .maxlen = sizeof(int), in sysctl_test_dointvec_read_happy_single_negative()
248 .maxlen = sizeof(int), in sysctl_test_dointvec_write_happy_single_positive()
278 .maxlen = sizeof(int), in sysctl_test_dointvec_write_happy_single_negative()
310 .maxlen = sizeof(int), in sysctl_test_api_dointvec_write_single_less_int_min()
348 .maxlen = sizeof(int), in sysctl_test_api_dointvec_write_single_greater_int_max()
Dhung_task.c273 .maxlen = sizeof(int),
283 .maxlen = sizeof(int),
292 .maxlen = sizeof(int),
300 .maxlen = sizeof(unsigned long),
308 .maxlen = sizeof(unsigned long),
316 .maxlen = sizeof(int),
Dwatchdog.c771 .maxlen = sizeof(int),
780 .maxlen = sizeof(int),
789 .maxlen = sizeof(int),
798 .maxlen = NR_CPUS,
806 .maxlen = sizeof(int),
815 .maxlen = sizeof(int),
825 .maxlen = sizeof(int),
837 .maxlen = sizeof(int),
847 .maxlen = sizeof(int),
Dstackleak.c32 table->maxlen = sizeof(int); in stack_erasing_sysctl()
51 .maxlen = sizeof(int),
Dkallsyms.c43 char *result, size_t maxlen) in kallsyms_expand_symbol() argument
79 if (maxlen <= 1) in kallsyms_expand_symbol()
83 maxlen--; in kallsyms_expand_symbol()
91 if (maxlen) in kallsyms_expand_symbol()
Dumh.c564 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long),
571 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long),
Dpanic.c87 .maxlen = sizeof(int),
97 .maxlen = sizeof(warn_limit),
Dlatencytop.c84 .maxlen = sizeof(int),
Dreboot.c1266 .maxlen = POWEROFF_CMD_PATH_LEN,
1273 .maxlen = sizeof(int),
Ddelayacct.c73 .maxlen = sizeof(unsigned int),
Dpid_namespace.c306 .maxlen = sizeof(int),
Dparams.c514 if (strlen(val)+1 > kps->maxlen) { in param_set_copystring()
516 kp->name, kps->maxlen-1); in param_set_copystring()
Ducount.c67 .maxlen = sizeof(long), \
Dseccomp.c2287 table.maxlen = sizeof(names); in read_actions_logged()
2305 table.maxlen = sizeof(names); in write_actions_logged()
2381 .maxlen = sizeof(seccomp_actions_avail),
/kernel/printk/
Dsysctl.c27 .maxlen = 4*sizeof(int),
34 .maxlen = sizeof(int),
41 .maxlen = sizeof(int),
48 .maxlen = sizeof(int),
57 .maxlen = DEVKMSG_STR_MAX_SIZE,
64 .maxlen = sizeof(int),
73 .maxlen = sizeof(int),
/kernel/trace/
Dtrace_probe_kernel.h55 int maxlen = get_loc_len(*(u32 *)dest); in kern_fetch_store_string_user() local
59 if (unlikely(!maxlen)) in kern_fetch_store_string_user()
64 ret = strncpy_from_user_nofault(__dest, uaddr, maxlen); in kern_fetch_store_string_user()
77 int maxlen = get_loc_len(*(u32 *)dest); in kern_fetch_store_string() local
86 if (unlikely(!maxlen)) in kern_fetch_store_string()
95 ret = strncpy_from_kernel_nofault(__dest, (void *)addr, maxlen); in kern_fetch_store_string()
Dtrace_probe_tmpl.h90 int maxlen = get_loc_len(*(u32 *)dest); in fetch_store_symstring() local
93 if (unlikely(!maxlen)) in fetch_store_symstring()
235 int header_size, int maxlen) in store_trace_args() argument
248 *dl = make_data_loc(maxlen, dyndata - base); in store_trace_args()
252 maxlen -= ret; in store_trace_args()
Dtrace_dynevent.c404 void dynevent_cmd_init(struct dynevent_cmd *cmd, char *buf, int maxlen, in dynevent_cmd_init() argument
410 seq_buf_init(&cmd->seq, buf, maxlen); in dynevent_cmd_init()
Dtrace_dynevent.h122 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.c151 int maxlen = get_loc_len(loc); in fetch_store_string() local
155 if (unlikely(!maxlen)) in fetch_store_string()
159 ret = strlcpy(dst, current->comm, maxlen); in fetch_store_string()
161 ret = strncpy_from_user(dst, src, maxlen); in fetch_store_string()
163 if (ret == maxlen) in fetch_store_string()
/kernel/sched/
Dautogroup.c16 .maxlen = sizeof(unsigned int),
Dpelt.c528 .maxlen = sizeof(unsigned int),

12