/kernel/ |
D | sysctl.c | 147 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 …]
|
D | utsname_sysctl.c | 82 .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),
|
D | sysctl-test.c | 26 .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()
|
D | hung_task.c | 273 .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),
|
D | watchdog.c | 771 .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),
|
D | stackleak.c | 32 table->maxlen = sizeof(int); in stack_erasing_sysctl() 51 .maxlen = sizeof(int),
|
D | kallsyms.c | 43 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()
|
D | umh.c | 564 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long), 571 .maxlen = _KERNEL_CAPABILITY_U32S * sizeof(unsigned long),
|
D | panic.c | 87 .maxlen = sizeof(int), 97 .maxlen = sizeof(warn_limit),
|
D | latencytop.c | 84 .maxlen = sizeof(int),
|
D | reboot.c | 1266 .maxlen = POWEROFF_CMD_PATH_LEN, 1273 .maxlen = sizeof(int),
|
D | delayacct.c | 73 .maxlen = sizeof(unsigned int),
|
D | pid_namespace.c | 306 .maxlen = sizeof(int),
|
D | params.c | 514 if (strlen(val)+1 > kps->maxlen) { in param_set_copystring() 516 kp->name, kps->maxlen-1); in param_set_copystring()
|
D | ucount.c | 67 .maxlen = sizeof(long), \
|
D | seccomp.c | 2287 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/ |
D | sysctl.c | 27 .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/ |
D | trace_probe_kernel.h | 55 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()
|
D | trace_probe_tmpl.h | 90 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()
|
D | trace_dynevent.c | 404 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()
|
D | trace_dynevent.h | 122 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 | 151 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/ |
D | autogroup.c | 16 .maxlen = sizeof(unsigned int),
|
D | pelt.c | 528 .maxlen = sizeof(unsigned int),
|