Home
last modified time | relevance | path

Searched refs:cands (Results 1 – 5 of 5) sorted by relevance

/linux/kernel/bpf/
H A Dbtf.c7702 } cands[]; member
7745 if (btf_is_module(cc->cands[0].btf)) { in btf_get_ptr_to_btf_id()
7751 kern_type_id = cc->cands[0].id; in btf_get_ptr_to_btf_id()
9149 static void bpf_free_cands(struct bpf_cand_cache *cands) in bpf_free_cands() argument
9151 if (!cands->cnt) in bpf_free_cands()
9154 kfree(cands); in bpf_free_cands()
9157 static void bpf_free_cands_from_cache(struct bpf_cand_cache *cands) in bpf_free_cands_from_cache() argument
9159 kfree(cands->name); in bpf_free_cands_from_cache()
9160 kfree(cands); in bpf_free_cands_from_cache()
9182 bpf_log(log, "%d", cc->cands[j].id); in __print_cand_cache()
[all …]
/linux/tools/lib/bpf/
H A Drelo_core.h16 struct bpf_core_cand *cands; member
85 struct bpf_core_cand_list *cands,
H A Dlibbpf.c5690 void bpf_core_free_cands(struct bpf_core_cand_list *cands) in bpf_core_free_cands() argument
5692 if (!cands) in bpf_core_free_cands()
5695 free(cands->cands); in bpf_core_free_cands()
5696 free(cands); in bpf_core_free_cands()
5704 struct bpf_core_cand_list *cands) in bpf_core_add_cands() argument
5736 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in bpf_core_add_cands()
5737 sizeof(*cands->cands)); in bpf_core_add_cands()
5741 cand = &new_cands[cands->len]; in bpf_core_add_cands()
5745 cands->cands = new_cands; in bpf_core_add_cands()
5746 cands->len++; in bpf_core_add_cands()
[all …]
H A Dlibbpf_internal.h713 struct bpf_core_cand_list *cands);
714 void bpf_core_free_cands(struct bpf_core_cand_list *cands);
/linux/net/batman-adv/
H A Ddistributed-arp-table.c559 struct batadv_dat_candidate *cands, in batadv_choose_next_candidate() argument
573 cands[select].type = BATADV_DAT_CANDIDATE_NOT_FOUND; in batadv_choose_next_candidate()
587 if (!batadv_is_orig_node_eligible(cands, select, in batadv_choose_next_candidate()
603 cands[select].type = BATADV_DAT_CANDIDATE_ORIG; in batadv_choose_next_candidate()
604 cands[select].orig_node = max_orig_node; in batadv_choose_next_candidate()