Home
last modified time | relevance | path

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

/linux-6.1.9/kernel/bpf/
Dcgroup.c130 struct cgroup_lsm_atype { struct
135 static struct cgroup_lsm_atype cgroup_lsm_atype[CGROUP_LSM_NUM]; argument
147 for (i = 0; i < ARRAY_SIZE(cgroup_lsm_atype); i++) in bpf_cgroup_atype_find()
148 if (cgroup_lsm_atype[i].attach_btf_id == attach_btf_id) in bpf_cgroup_atype_find()
151 for (i = 0; i < ARRAY_SIZE(cgroup_lsm_atype); i++) in bpf_cgroup_atype_find()
152 if (cgroup_lsm_atype[i].attach_btf_id == 0) in bpf_cgroup_atype_find()
165 WARN_ON_ONCE(cgroup_lsm_atype[i].attach_btf_id && in bpf_cgroup_atype_get()
166 cgroup_lsm_atype[i].attach_btf_id != attach_btf_id); in bpf_cgroup_atype_get()
168 cgroup_lsm_atype[i].attach_btf_id = attach_btf_id; in bpf_cgroup_atype_get()
169 cgroup_lsm_atype[i].refcnt++; in bpf_cgroup_atype_get()
[all …]