Searched refs:cgrp (Results 1 – 3 of 3) sorted by relevance
39 struct cgroup *cgrp; in cgroup_mt_check_v1() local56 cgrp = cgroup_get_from_path(info->path); in cgroup_mt_check_v1()57 if (IS_ERR(cgrp)) { in cgroup_mt_check_v1()59 PTR_ERR(cgrp)); in cgroup_mt_check_v1()62 info->priv = cgrp; in cgroup_mt_check_v1()71 struct cgroup *cgrp; in cgroup_mt_check_v2() local88 cgrp = cgroup_get_from_path(info->path); in cgroup_mt_check_v2()89 if (IS_ERR(cgrp)) { in cgroup_mt_check_v2()91 PTR_ERR(cgrp)); in cgroup_mt_check_v2()94 info->priv = cgrp; in cgroup_mt_check_v2()
42 struct cgroup *cgrp; in nft_sock_get_eval_cgroupv2() local48 cgrp = cgroup_ancestor(sock_cgroup_ptr(&sk->sk_cgrp_data), level); in nft_sock_get_eval_cgroupv2()49 if (!cgrp) in nft_sock_get_eval_cgroupv2()52 cgid = cgroup_id(cgrp); in nft_sock_get_eval_cgroupv2()
4762 struct cgroup *cgrp; in BPF_CALL_3() local4771 cgrp = READ_ONCE(array->ptrs[idx]); in BPF_CALL_3()4772 if (unlikely(!cgrp)) in BPF_CALL_3()4775 return sk_under_cgroup_hierarchy(sk, cgrp); in BPF_CALL_3()4790 struct cgroup *cgrp; in __bpf_sk_cgroup_id() local4796 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __bpf_sk_cgroup_id()4797 return cgroup_id(cgrp); in __bpf_sk_cgroup_id()4816 struct cgroup *cgrp; in __bpf_sk_ancestor_cgroup_id() local4822 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __bpf_sk_ancestor_cgroup_id()4823 ancestor = cgroup_ancestor(cgrp, ancestor_level); in __bpf_sk_ancestor_cgroup_id()