Home
last modified time | relevance | path

Searched refs:str_size (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/drivers/md/
Ddm-log-userspace-base.c129 int i, str_size; in build_constructor_string() local
137 for (i = 0, str_size = 0; i < argc; i++) in build_constructor_string()
138 str_size += strlen(argv[i]) + 1; /* +1 for space between args */ in build_constructor_string()
140 str_size += 20; /* Max number of chars in a printed u64 number */ in build_constructor_string()
142 str = kzalloc(str_size, GFP_KERNEL); in build_constructor_string()
148 str_size = sprintf(str, "%llu", (unsigned long long)ti->len); in build_constructor_string()
150 str_size += sprintf(str + str_size, " %s", argv[i]); in build_constructor_string()
153 return str_size; in build_constructor_string()
194 int str_size; in userspace_ctr() local
239 str_size = build_constructor_string(ti, argc, argv, &ctr_str); in userspace_ctr()
[all …]
/Linux-v5.10/net/tipc/
Dib_media.c49 int str_size) in tipc_ib_addr2str() argument
51 if (str_size < 60) /* 60 = 19 * strlen("xx:") + strlen("xx\0") */ in tipc_ib_addr2str()
/Linux-v5.10/tools/perf/util/
Dutil.c348 size_t str_size) in fetch_kernel_version() argument
361 if (str && str_size) { in fetch_kernel_version()
362 strncpy(str, utsname.release, str_size); in fetch_kernel_version()
363 str[str_size - 1] = '\0'; in fetch_kernel_version()
/Linux-v5.10/security/apparmor/
Dlib.c203 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs, u32 mask) in aa_perm_mask_to_str() argument
211 if (WARN_ON_ONCE(str_size <= 1)) in aa_perm_mask_to_str()
215 str_size--; in aa_perm_mask_to_str()
/Linux-v5.10/security/apparmor/include/
Dperms.h136 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs,
/Linux-v5.10/drivers/net/wireless/ath/wil6210/
Dwmi.c3163 static void resume_triggers2string(u32 triggers, char *string, int str_size) in resume_triggers2string() argument
3168 strlcat(string, " UNKNOWN", str_size); in resume_triggers2string()
3173 strlcat(string, " HOST", str_size); in resume_triggers2string()
3176 strlcat(string, " UCAST_RX", str_size); in resume_triggers2string()
3179 strlcat(string, " BCAST_RX", str_size); in resume_triggers2string()
3182 strlcat(string, " WMI_EVT", str_size); in resume_triggers2string()
3185 strlcat(string, " DISCONNECT", str_size); in resume_triggers2string()
/Linux-v5.10/kernel/trace/
Dbpf_trace.c1226 BPF_CALL_5(bpf_snprintf_btf, char *, str, u32, str_size, struct btf_ptr *, ptr, in BPF_CALL_5() argument
1237 return btf_type_snprintf_show(btf, btf_id, ptr->ptr, str, str_size, in BPF_CALL_5()
/Linux-v5.10/drivers/gpu/vga/
Dvgaarb.c102 static int vga_str_to_iostate(char *buf, int str_size, int *io_state) in vga_str_to_iostate() argument
/Linux-v5.10/tools/lib/traceevent/
Devent-parse.c3923 int str_size = (nr_bits + 3) / 4; in print_bitmask_to_seq() local
3934 str_size += (nr_bits - 1) / 32; in print_bitmask_to_seq()
3936 str = malloc(str_size + 1); in print_bitmask_to_seq()
3941 str[str_size] = 0; in print_bitmask_to_seq()
3944 for (i = str_size - 2; i >= 0; i -= 2) { in print_bitmask_to_seq()