Home
last modified time | relevance | path

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

/third_party/libbpf/src/
Dbtf.c146 size_t cur_cnt, size_t max_cnt, size_t add_cnt) in libbpf_add_mem() argument
151 if (cur_cnt + add_cnt <= *cap_cnt) in libbpf_add_mem()
152 return *data + cur_cnt * elem_sz; in libbpf_add_mem()
155 if (cur_cnt + add_cnt > max_cnt) in libbpf_add_mem()
164 if (new_cnt < cur_cnt + add_cnt) /* also ensure we have enough memory */ in libbpf_add_mem()
165 new_cnt = cur_cnt + add_cnt; in libbpf_add_mem()
176 return new_data + cur_cnt * elem_sz; in libbpf_add_mem()
Dlibbpf_internal.h313 size_t cur_cnt, size_t max_cnt, size_t add_cnt);