/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | fs_context.c | 1251 if (strnlen(param->string, CIFS_MAX_USERNAME_LEN) > in smb3_fs_context_parse_param() 1288 if (strnlen(param->string, CIFS_MAX_DOMAINNAME_LEN) in smb3_fs_context_parse_param() 1312 if (strnlen(param->string, 1024) >= 65) { in smb3_fs_context_parse_param() 1594 for (i = 0; i < strnlen(nodename, RFC1001_NAME_LEN); i++) in smb3_init_fs_context()
|
H A D | sess.c | 884 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 901 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 916 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup() 1011 sz += sizeof(__le16) * strnlen(ses->domainName, CIFS_MAX_DOMAINNAME_LEN); in size_of_ntlmssp_blob() 1016 sz += sizeof(__le16) * strnlen(ses->user_name, CIFS_MAX_USERNAME_LEN); in size_of_ntlmssp_blob() 1021 sz += sizeof(__le16) * strnlen(ses->workstation_name, in size_of_ntlmssp_blob()
|
/kernel/linux/linux-6.6/drivers/scsi/libfc/ |
H A D | fc_encode.h | 139 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill() 149 len = strnlen(fc_host_symbolic_name(lport->host), 255); in fc_ct_ns_fill() 552 strnlen(dev_name(&lport->host->shost_gendev), in fc_ct_ms_fill() 566 strnlen(fc_host_system_hostname(lport->host), in fc_ct_ms_fill()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | x_tables.c | 182 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_match() 212 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_match() 231 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_target() 259 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_target() 448 if (strnlen(name, size) == size) in xt_check_proc_name() 641 return usersize == kernsize && strnlen(msg, msglen) < msglen; in error_tg_ok()
|
H A D | xt_RATEEST.c | 118 if (strnlen(info->name, sizeof(est->name)) >= sizeof(est->name)) in xt_rateest_tg_checkentry()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | x_tables.c | 202 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_match() 232 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_match() 251 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_find_target() 279 if (strnlen(name, XT_EXTENSION_MAXNAMELEN) == XT_EXTENSION_MAXNAMELEN) in xt_request_find_target() 468 if (strnlen(name, size) == size) in xt_check_proc_name() 661 return usersize == kernsize && strnlen(msg, msglen) < msglen; in error_tg_ok()
|
H A D | xt_RATEEST.c | 118 if (strnlen(info->name, sizeof(est->name)) >= sizeof(est->name)) in xt_rateest_tg_checkentry()
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
H A D | string.c | 80 size_t strnlen(const char *s, size_t maxlen) in strnlen() function
|
H A D | printf.c | 207 len = strnlen(s, precision); in vsprintf()
|
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | cpu.c | 220 if (strnlen(riscv_isa_ext[i].name, 2) != 1) in print_isa()
|
/kernel/linux/linux-6.6/arch/x86/boot/ |
H A D | string.c | 80 size_t strnlen(const char *s, size_t maxlen) in strnlen() function
|
H A D | printf.c | 207 len = strnlen(s, precision); in vsprintf()
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
H A D | phram.c | 225 if (strnlen(val, sizeof(buf)) >= sizeof(buf)) in phram_setup()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_module.c | 240 return strnlen(buf, len); in debug_level_proc_write()
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_hexdump.c | 201 len, buflen, strnlen(buf, sizeof(buf))); in test_hexdump_overflow()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
H A D | uaccess.h | 275 #define __strnlen_user(s, n) (strnlen((s), (n)) + 1) 279 * Unlike strnlen, strnlen_user includes the nul terminator in
|
/kernel/linux/linux-6.6/fs/fuse/ |
H A D | xattr.c | 97 size_t thislen = strnlen(list, size); in fuse_verify_xattr_list()
|
/kernel/linux/linux-6.6/drivers/soc/qcom/ |
H A D | cmd-db.c | 287 (int)strnlen(ent->id, sizeof(ent->id)), ent->id); in cmd_db_debugfs_dump()
|
/kernel/linux/linux-6.6/drivers/char/xillybus/ |
H A D | xillybus_class.c | 112 namelen = strnlen(idt, len); in xillybus_init_chrdev()
|
/kernel/linux/linux-6.6/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_module.c | 240 return strnlen(buf, len); in debug_level_proc_write()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/ |
H A D | guest_sprintf.c | 226 len = strnlen(s, precision); in guest_vsnprintf()
|
/kernel/linux/linux-6.6/lib/ |
H A D | test_hexdump.c | 201 len, buflen, strnlen(buf, sizeof(buf))); in test_hexdump_overflow()
|
/third_party/eudev/src/libudev/ |
H A D | libudev-util.c | 224 len = strnlen(str, len); in util_replace_whitespace()
|
/third_party/libuv/src/unix/ |
H A D | getaddrinfo.c | 239 len = strnlen(ifname_buf, sizeof(ifname_buf)); in uv_if_indextoname()
|
/third_party/musl/porting/linux/user/src/stdio/ |
H A D | fmemopen.c | 116 else if (*mode == 'a') f->c.len = f->c.pos = strnlen(buf, size); in fmemopen()
|