Home
last modified time | relevance | path

Searched refs:strnlen (Results 1 – 25 of 64) sorted by relevance

123

/f-stack/dpdk/lib/librte_eal/common/
H A Drte_malloc.c265 strnlen(name, RTE_HEAP_NAME_MAX_LEN) == 0 || in rte_malloc_heap_get_socket()
266 strnlen(name, RTE_HEAP_NAME_MAX_LEN) == in rte_malloc_heap_get_socket()
410 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == 0 || in rte_malloc_heap_memory_add()
411 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == in rte_malloc_heap_memory_add()
459 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == 0 || in rte_malloc_heap_memory_remove()
460 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == in rte_malloc_heap_memory_remove()
508 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == 0 || in sync_memory()
509 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == in sync_memory()
586 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == 0 || in rte_malloc_heap_create()
587 strnlen(heap_name, RTE_HEAP_NAME_MAX_LEN) == in rte_malloc_heap_create()
[all …]
H A Deal_common_memalloc.c159 len = strnlen(name, RTE_MEM_EVENT_CALLBACK_NAME_LEN); in eal_memalloc_mem_event_callback_register()
209 len = strnlen(name, RTE_MEM_EVENT_CALLBACK_NAME_LEN); in eal_memalloc_mem_event_callback_unregister()
265 len = strnlen(name, RTE_MEM_ALLOC_VALIDATOR_NAME_LEN); in eal_memalloc_mem_alloc_validator_register()
316 len = strnlen(name, RTE_MEM_ALLOC_VALIDATOR_NAME_LEN); in eal_memalloc_mem_alloc_validator_unregister()
/f-stack/dpdk/lib/librte_mbuf/
H A Drte_mbuf_pool_ops.c17 size_t len = strnlen(ops_name, RTE_MEMPOOL_OPS_NAMESIZE); in rte_mbuf_set_platform_mempool_ops()
57 size_t len = strnlen(ops_name, RTE_MEMPOOL_OPS_NAMESIZE); in rte_mbuf_set_user_mempool_ops()
/f-stack/dpdk/examples/cmdline/
H A Dparse_obj_list.c51 if (token_len != strnlen(o->name, OBJ_NAME_LEN_MAX)) in parse_obj_list()
96 len = strnlen(o->name, OBJ_NAME_LEN_MAX); in complete_get_elt_obj_list()
/f-stack/dpdk/lib/librte_cmdline/
H A Dcmdline_parse.c341 partial_tok_len = strnlen(partial_tok, RDLINE_BUF_SIZE); in cmdline_complete()
381 tmp_len = strnlen(tmpbuf, sizeof(tmpbuf)); in cmdline_complete()
398 strnlen(tmpbuf + partial_tok_len, in cmdline_complete()
492 tmp_len = strnlen(tmpbuf, sizeof(tmpbuf)); in cmdline_complete()
H A Dcmdline.c160 histlen = strnlen(history, RDLINE_BUF_SIZE); in cmdline_in()
166 buflen = strnlen(buffer, RDLINE_BUF_SIZE); in cmdline_in()
H A Dcmdline_rdline.c66 rdl->prompt_size = strnlen(prompt, RDLINE_PROMPT_SIZE-1); in rdline_newline()
380 tmp_size = strnlen(tmp_buf, sizeof(tmp_buf)); in rdline_char_in()
446 cirbuf_add_buf_tail(&rdl->left, buf, strnlen(buf, RDLINE_BUF_SIZE)); in rdline_char_in()
463 cirbuf_add_buf_tail(&rdl->left, buf, strnlen(buf, RDLINE_BUF_SIZE)); in rdline_char_in()
575 len = strnlen(buf, RDLINE_BUF_SIZE); in rdline_add_history()
H A Dcmdline_vt100.c65 cmdlen = strnlen(cmd, CMDLINE_VT100_BUF_SIZE); in match_command()
/f-stack/freebsd/libkern/
H A Dstrnlen.c35 strnlen(const char *s, size_t maxlen) in strnlen() function
H A Dstrndup.c46 len = strnlen(string, maxlen) + 1; in strndup()
H A Diconv.c421 if (strnlen(din.ia_from, sizeof(din.ia_from)) >= ICONV_CSNMAXLEN) in iconv_sysctl_add()
423 if (strnlen(din.ia_to, sizeof(din.ia_to)) >= ICONV_CSNMAXLEN) in iconv_sysctl_add()
425 if (strnlen(din.ia_converter, sizeof(din.ia_converter)) >= ICONV_CNVNMAXLEN) in iconv_sysctl_add()
/f-stack/dpdk/lib/librte_power/
H A Dpower_common.c44 end_idx = strnlen(readbuf, sizeof(readbuf)); in cpufreq_check_scaling_driver()
/f-stack/freebsd/contrib/ncsw/inc/
H A Dstdlib_ext.h86 size_t strnlen(const char * s, size_t count);
/f-stack/freebsd/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_device_path_os.c51 return (strnlen(path, max_len)); in zfs_append_partition()
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_string_fns.h72 size_t l = strnlen(dst, size); in rte_strlcat()
/f-stack/freebsd/contrib/openzfs/lib/libuutil/
H A Duu_alloc.c79 len = strnlen(s, n); in uu_strndup()
/f-stack/freebsd/contrib/libfdt/
H A Dlibfdt_env.h127 #define strnlen fdt_strnlen macro
H A Dfdt_ro.c649 length = strnlen(list, end - list) + 1; in fdt_stringlist_count()
676 length = strnlen(list, end - list) + 1; in fdt_stringlist_search()
710 length = strnlen(list, end - list) + 1; in fdt_stringlist_get()
/f-stack/dpdk/lib/librte_vhost/
H A Dvhost.h536 …snprintf(packet + strnlen(packet, VHOST_MAX_PRINT_BUFF), VHOST_MAX_PRINT_BUFF - strnlen(packet, VH…
539 …snprintf(packet + strnlen(packet, VHOST_MAX_PRINT_BUFF), VHOST_MAX_PRINT_BUFF - strnlen(packet, VH…
/f-stack/freebsd/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c175 if (strnlen(fp_type, min_len) < min_len) in get_fp()
338 if (strnlen(entry, MAXPATHLEN) == MAXPATHLEN) in parse_entry()
/f-stack/dpdk/app/test-regex/
H A Dmain.c83 len = strnlen(optarg, MAX_FILE_NAME - 1); in args_parse()
91 len = strnlen(optarg, MAX_FILE_NAME - 1); in args_parse()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_nat.c591 if (strnlen(ucfg->name, sizeof(ucfg->name)) == sizeof(ucfg->name)) in nat44_cfg()
633 if (strnlen(ntlv->name, sizeof(ntlv->name)) == sizeof(ntlv->name)) in nat44_destroy()
698 if (strnlen(ucfg->name, sizeof(ucfg->name)) == sizeof(ucfg->name)) in nat44_get_cfg()
839 if (strnlen(ucfg->name, sizeof(ucfg->name)) == sizeof(ucfg->name)) in nat44_get_log()
/f-stack/freebsd/sys/
H A Dlibkern.h188 size_t strnlen(const char *, size_t);
/f-stack/freebsd/contrib/openzfs/module/icp/algs/aes/
H A Daes_impl.c368 i = strnlen(val, AES_IMPL_NAME_MAX); in aes_impl_set()
/f-stack/dpdk/examples/qos_sched/
H A Dargs.c146 n_tokens = rte_strsplit(string, strnlen(string, 32), tokens, n_vals, separator); in app_parse_opt_vals()

123