Home
last modified time | relevance | path

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

/third_party/libbpf/src/
Dbtf.c157 size_t cur_cnt, size_t max_cnt, size_t add_cnt) in libbpf_add_mem() argument
162 if (cur_cnt + add_cnt <= *cap_cnt) in libbpf_add_mem()
163 return *data + cur_cnt * elem_sz; in libbpf_add_mem()
166 if (cur_cnt + add_cnt > max_cnt) in libbpf_add_mem()
175 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in libbpf_add_mem()
176 new_cnt = cur_cnt + add_cnt; in libbpf_add_mem()
187 return new_data + cur_cnt * elem_sz; in libbpf_add_mem()
Dlibbpf_internal.h267 size_t cur_cnt, size_t max_cnt, size_t add_cnt);