Searched refs:dtors (Results 1 – 1 of 1) sorted by relevance
/kernel/bpf/ |
D | btf.c | 222 struct btf_id_dtor_kfunc dtors[]; member 7514 dtor = bsearch(&btf_id, tab->dtors, tab->cnt, sizeof(tab->dtors[0]), btf_id_cmp_func); in btf_find_dtor_kfunc() 7520 static int btf_check_dtor_kfuncs(struct btf *btf, const struct btf_id_dtor_kfunc *dtors, u32 cnt) in btf_check_dtor_kfuncs() argument 7528 dtor_btf_id = dtors[i].kfunc_btf_id; in btf_check_dtor_kfuncs() 7558 int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dtors, u32 add_cnt, in register_btf_id_dtor_kfuncs() argument 7588 ret = btf_check_dtor_kfuncs(btf, dtors, add_cnt); in register_btf_id_dtor_kfuncs() 7611 offsetof(struct btf_id_dtor_kfunc_tab, dtors[tab_cnt + add_cnt]), in register_btf_id_dtor_kfuncs() 7622 memcpy(tab->dtors + tab->cnt, dtors, add_cnt * sizeof(tab->dtors[0])); in register_btf_id_dtor_kfuncs() 7625 sort(tab->dtors, tab->cnt, sizeof(tab->dtors[0]), btf_id_cmp_func, NULL); in register_btf_id_dtor_kfuncs()
|