Home
last modified time | relevance | path

Searched refs:add_cnt (Results 1 – 2 of 2) sorted by relevance

/external/libbpf/src/
Dlibbpf_internal.h248 size_t cur_cnt, size_t max_cnt, size_t add_cnt);
Dbtf.c142 size_t cur_cnt, size_t max_cnt, size_t add_cnt) in libbpf_add_mem() argument
147 if (cur_cnt + add_cnt <= *cap_cnt) in libbpf_add_mem()
151 if (cur_cnt + add_cnt > max_cnt) in libbpf_add_mem()
160 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in libbpf_add_mem()
161 new_cnt = cur_cnt + add_cnt; in libbpf_add_mem()
192 static void *btf_add_type_offs_mem(struct btf *btf, size_t add_cnt) in btf_add_type_offs_mem() argument
195 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem()