Searched refs:btf_mod (Results 1 – 3 of 3) sorted by relevance
6067 struct btf_module *btf_mod, *tmp; in btf_module_notify() local6079 btf_mod = kzalloc(sizeof(*btf_mod), GFP_KERNEL); in btf_module_notify()6080 if (!btf_mod) { in btf_module_notify()6086 kfree(btf_mod); in btf_module_notify()6099 kfree(btf_mod); in btf_module_notify()6104 btf_mod->module = module; in btf_module_notify()6105 btf_mod->btf = btf; in btf_module_notify()6106 list_add(&btf_mod->list, &btf_modules); in btf_module_notify()6132 btf_mod->sysfs_attr = attr; in btf_module_notify()6138 list_for_each_entry_safe(btf_mod, tmp, &btf_modules, list) { in btf_module_notify()[all …]
2250 struct btf_mod_pair *btf_mod; in __bpf_free_used_btfs() local2254 btf_mod = &used_btfs[i]; in __bpf_free_used_btfs()2255 if (btf_mod->module) in __bpf_free_used_btfs()2256 module_put(btf_mod->module); in __bpf_free_used_btfs()2257 btf_put(btf_mod->btf); in __bpf_free_used_btfs()
11494 struct btf_mod_pair *btf_mod; in check_pseudo_btf_id() local11597 btf_mod = &env->used_btfs[env->used_btf_cnt]; in check_pseudo_btf_id()11598 btf_mod->btf = btf; in check_pseudo_btf_id()11599 btf_mod->module = NULL; in check_pseudo_btf_id()11603 btf_mod->module = btf_try_get_module(btf); in check_pseudo_btf_id()11604 if (!btf_mod->module) { in check_pseudo_btf_id()