Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 25 of 38) sorted by relevance

12

/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dmessage_verify.c274 static int is_str_msg_valid(char *msg, int str_len[], size_t str_num) in is_str_msg_valid() argument
280 if (msg[pos + str_len[i]] != '\0' || in is_str_msg_valid()
281 strnlen(msg + pos, PATH_MAX) != str_len[i]) in is_str_msg_valid()
283 pos += str_len[i] + 1; in is_str_msg_valid()
292 int str_len[] = { req->path_len }; in verify_open_req() local
300 str_len[0] = req->path_len; in verify_open_req()
301 if (is_str_msg_valid(req->buf, str_len, sizeof(str_len) / sizeof(int))) in verify_open_req()
331 int str_len[] = { req->path_len, req->file_len}; in verify_atomic_open_req() local
340 if (is_str_msg_valid(req->buf, str_len, sizeof(str_len) / sizeof(int))) in verify_atomic_open_req()
370 int str_len[] = { req->path_len }; in verify_iterate_req() local
[all …]
/kernel/linux/linux-5.10/security/selinux/
Dxfrm.c81 u32 str_len; in selinux_xfrm_alloc_user() local
88 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user()
89 if (str_len >= PAGE_SIZE) in selinux_xfrm_alloc_user()
92 ctx = kmalloc(sizeof(*ctx) + str_len + 1, gfp); in selinux_xfrm_alloc_user()
98 ctx->ctx_len = str_len; in selinux_xfrm_alloc_user()
99 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user()
100 ctx->ctx_str[str_len] = '\0'; in selinux_xfrm_alloc_user()
101 rc = security_context_to_sid(&selinux_state, ctx->ctx_str, str_len, in selinux_xfrm_alloc_user()
350 u32 str_len; in selinux_xfrm_state_alloc_acquire() local
359 &str_len); in selinux_xfrm_state_alloc_acquire()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_debugfs.c188 uint8_t str_len = 0; in dp_link_settings_read() local
200 str_len = strlen("Current: %d 0x%x %d "); in dp_link_settings_read()
201 snprintf(rd_buf_ptr, str_len, "Current: %d 0x%x %d ", in dp_link_settings_read()
205 rd_buf_ptr += str_len; in dp_link_settings_read()
207 str_len = strlen("Verified: %d 0x%x %d "); in dp_link_settings_read()
208 snprintf(rd_buf_ptr, str_len, "Verified: %d 0x%x %d ", in dp_link_settings_read()
212 rd_buf_ptr += str_len; in dp_link_settings_read()
214 str_len = strlen("Reported: %d 0x%x %d "); in dp_link_settings_read()
215 snprintf(rd_buf_ptr, str_len, "Reported: %d 0x%x %d ", in dp_link_settings_read()
219 rd_buf_ptr += str_len; in dp_link_settings_read()
[all …]
/kernel/linux/linux-5.10/tools/power/acpi/os_specific/service_layers/
Dosunixdir.c95 int str_len; in acpi_os_get_next_filename() local
106 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename()
109 temp_str = calloc(str_len, 1); in acpi_os_get_next_filename()
/kernel/linux/linux-5.10/lib/
Dparser.c59 size_t str_len = strlen(s); in match_one() local
61 if (str_len == 0) in match_one()
63 if (len == -1 || len > str_len) in match_one()
64 len = str_len; in match_one()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf_probes.c147 const char *str_sec, size_t str_len) in libbpf__load_raw_btf() argument
155 .str_len = str_len, in libbpf__load_raw_btf()
160 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf()
167 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
Dbtf.c186 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr()
219 if (meta_left < (long long)hdr->str_off + hdr->str_len) { in btf_parse_hdr()
226 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
242 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec()
244 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || in btf_parse_str_sec()
744 btf->hdr->str_len = 1; /* empty string at offset 0 */ in btf__new_empty()
1158 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1184 memcpy(p, btf->strs_data, hdr->str_len); in btf_get_raw_data()
1185 p += hdr->str_len; in btf_get_raw_data()
1215 if (offset < btf->hdr->str_len) in btf__str_by_offset()
[all …]
Dlibbpf_internal.h152 const char *str_sec, size_t str_len);
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_events_inject.c220 int str_len = strlen(addr) + 1; in parse_entry() local
224 entry_size += str_len; in parse_entry()
232 strlcpy(entry + (entry_size - str_len), addr, str_len); in parse_entry()
234 *str_item = (str_len << 16) | str_loc; in parse_entry()
/kernel/linux/linux-5.10/drivers/s390/net/
Dqeth_l3_sys.c370 int str_len = 0; in qeth_l3_dev_ipato_add_show() local
388 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ipato_add_show()
391 entry_len = scnprintf(buf, PAGE_SIZE - str_len, in qeth_l3_dev_ipato_add_show()
393 str_len += entry_len; in qeth_l3_dev_ipato_add_show()
398 return str_len ? str_len : scnprintf(buf, PAGE_SIZE, "\n"); in qeth_l3_dev_ipato_add_show()
590 int str_len = 0; in qeth_l3_dev_ip_add_show() local
607 if (entry_len + 1 > PAGE_SIZE - str_len - 1) in qeth_l3_dev_ip_add_show()
610 entry_len = scnprintf(buf, PAGE_SIZE - str_len, "%s\n", in qeth_l3_dev_ip_add_show()
612 str_len += entry_len; in qeth_l3_dev_ip_add_show()
617 return str_len ? str_len : scnprintf(buf, PAGE_SIZE, "\n"); in qeth_l3_dev_ip_add_show()
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/
Disst-display.c9 static void printcpulist(int str_len, char *str, int mask_size, in printcpulist() argument
15 snprintf(str, str_len, "none"); in printcpulist()
26 str_len - curr_index, ","); in printcpulist()
28 if (curr_index >= str_len) in printcpulist()
31 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist()
34 if (curr_index >= str_len) in printcpulist()
40 static void printcpumask(int str_len, char *str, int mask_size, in printcpumask() argument
68 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask()
71 if (curr_index >= str_len) in printcpumask()
74 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask()
[all …]
/kernel/linux/linux-5.10/security/tomoyo/
Drealpath.c23 char *tomoyo_encode2(const char *str, int str_len) in tomoyo_encode2() argument
33 for (i = 0; i < str_len; i++) { in tomoyo_encode2()
50 for (i = 0; i < str_len; i++) { in tomoyo_encode2()
/kernel/linux/linux-5.10/fs/udf/
Dunicode.c277 const uint8_t *str_i, int str_len) in udf_name_to_CS0() argument
300 for (i = 0; i < str_len; i += len) { in udf_name_to_CS0()
307 len = conv_f(&str_i[i], str_len - i, &wchar); in udf_name_to_CS0()
311 len = utf8_to_utf32(&str_i[i], str_len - i, in udf_name_to_CS0()
/kernel/linux/linux-5.10/kernel/bpf/preload/iterators/
Diterators.bpf.c32 __u32 str_len; member
72 if (name_off >= btf->hdr.str_len) in get_name()
/kernel/linux/linux-5.10/security/selinux/ss/
Dsidtab.h140 const char *str, u32 str_len);
146 const char *str, u32 str_len) in sidtab_sid2str_put() argument
Dsidtab.c554 const char *str, u32 str_len) in sidtab_sid2str_put() argument
573 cache = kmalloc(sizeof(struct sidtab_str_cache) + str_len, GFP_ATOMIC); in sidtab_sid2str_put()
587 cache->len = str_len; in sidtab_sid2str_put()
588 memcpy(cache->str, str, str_len); in sidtab_sid2str_put()
/kernel/linux/linux-5.10/drivers/platform/x86/
Dacerhdf.c590 unsigned long str_len = 0, start_len = 0; in str_starts_with() local
592 str_len = strlen(str); in str_starts_with()
595 if (str_len >= start_len && in str_starts_with()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dbtf.h20 __u32 str_len; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dbtf.h32 __u32 str_len; member
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dbtf.h21 __u32 str_len; /* length of string section */ member
/kernel/linux/linux-5.10/include/uapi/linux/
Dbtf.h21 __u32 str_len; /* length of string section */ member
/kernel/linux/linux-5.10/tools/hv/
Dhv_kvp_daemon.c1181 int str_len; in kvp_set_ip_info() local
1305 str_len = snprintf(cmd, sizeof(cmd), KVP_SCRIPTS_PATH "%s %s", in kvp_set_ip_info()
1311 if (str_len <= 0 || (unsigned int)str_len >= sizeof(cmd)) { in kvp_set_ip_info()
1313 cmd, str_len); in kvp_set_ip_info()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-uclogic-params.c456 const size_t str_len = 16; in uclogic_params_frame_init_v1_buttonpad() local
469 str_buf = kzalloc(str_len, GFP_KERNEL); in uclogic_params_frame_init_v1_buttonpad()
475 rc = usb_string(usb_dev, 123, str_buf, str_len); in uclogic_params_frame_init_v1_buttonpad()
/kernel/linux/linux-5.10/tools/perf/util/cs-etm-decoder/
Dcs-etm-decoder.c144 const int str_len) in cs_etm_decoder__print_str_cb() argument
146 if (p_context && str_len) in cs_etm_decoder__print_str_cb()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_verifier.c549 .str_len = sizeof(btf_str_sec), in load_btf()
561 memcpy(ptr, btf_str_sec, hdr.str_len); in load_btf()
562 ptr += hdr.str_len; in load_btf()

12