Lines Matching refs:attach_btf_id
148 u32 attach_btf_id; member
155 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() argument
165 if (cgroup_lsm_atype[i].attach_btf_id == attach_btf_id) in bpf_cgroup_atype_find()
169 if (cgroup_lsm_atype[i].attach_btf_id == 0) in bpf_cgroup_atype_find()
176 void bpf_cgroup_atype_get(u32 attach_btf_id, int cgroup_atype) in bpf_cgroup_atype_get() argument
182 WARN_ON_ONCE(cgroup_lsm_atype[i].attach_btf_id && in bpf_cgroup_atype_get()
183 cgroup_lsm_atype[i].attach_btf_id != attach_btf_id); in bpf_cgroup_atype_get()
185 cgroup_lsm_atype[i].attach_btf_id = attach_btf_id; in bpf_cgroup_atype_get()
195 cgroup_lsm_atype[i].attach_btf_id = 0; in bpf_cgroup_atype_put()
201 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find() argument
650 atype = bpf_cgroup_atype_find(type, new_prog->aux->attach_btf_id); in __cgroup_bpf_attach()
820 atype = bpf_cgroup_atype_find(link->type, new_prog->aux->attach_btf_id); in __cgroup_bpf_replace()
974 u32 attach_btf_id = 0; in __cgroup_bpf_detach() local
978 attach_btf_id = prog->aux->attach_btf_id; in __cgroup_bpf_detach()
980 attach_btf_id = link->link.prog->aux->attach_btf_id; in __cgroup_bpf_detach()
982 atype = bpf_cgroup_atype_find(type, attach_btf_id); in __cgroup_bpf_detach()