Home
last modified time | relevance | path

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

/kernel/cgroup/
Dmisc.c116 static void misc_cg_cancel_charge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_cancel_charge() argument
119 WARN_ONCE(atomic_long_add_negative(-amount, &cg->res[type].usage), in misc_cg_cancel_charge()
140 int misc_cg_try_charge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_try_charge() argument
148 if (!(valid_type(type) && cg && READ_ONCE(misc_res_capacity[type]))) in misc_cg_try_charge()
154 for (i = cg; i; i = parent_misc(i)) { in misc_cg_try_charge()
172 for (j = cg; j != i; j = parent_misc(j)) in misc_cg_try_charge()
187 void misc_cg_uncharge(enum misc_res_type type, struct misc_cg *cg, in misc_cg_uncharge() argument
192 if (!(amount && valid_type(type) && cg)) in misc_cg_uncharge()
195 for (i = cg; i; i = parent_misc(i)) in misc_cg_uncharge()
211 struct misc_cg *cg = css_misc(seq_css(sf)); in misc_cg_max_show() local
[all …]
Drdma.c72 static struct rdma_cgroup *parent_rdmacg(struct rdma_cgroup *cg) in parent_rdmacg() argument
74 return css_rdmacg(cg->css.parent); in parent_rdmacg()
113 find_cg_rpool_locked(struct rdma_cgroup *cg, in find_cg_rpool_locked() argument
121 list_for_each_entry(pool, &cg->rpools, cg_node) in find_cg_rpool_locked()
129 get_cg_rpool_locked(struct rdma_cgroup *cg, struct rdmacg_device *device) in get_cg_rpool_locked() argument
133 rpool = find_cg_rpool_locked(cg, device); in get_cg_rpool_locked()
146 list_add_tail(&rpool->cg_node, &cg->rpools); in get_cg_rpool_locked()
162 uncharge_cg_locked(struct rdma_cgroup *cg, in uncharge_cg_locked() argument
168 rpool = find_cg_rpool_locked(cg, device); in uncharge_cg_locked()
176 pr_warn("Invalid device %p or rdma cgroup %p\n", cg, device); in uncharge_cg_locked()
[all …]
/kernel/bpf/
Dcgroup.c750 struct cgroup *cg; in replace_effective_prog() local
760 for (pos = 0, cg = desc; cg; cg = cgroup_parent(cg)) { in replace_effective_prog()
761 if (pos && !(cg->bpf.flags[atype] & BPF_F_ALLOW_MULTI)) in replace_effective_prog()
764 head = &cg->bpf.progs[atype]; in replace_effective_prog()
774 BUG_ON(!cg); in replace_effective_prog()
900 struct cgroup *cg; in purge_effective_progs() local
911 for (pos = 0, cg = desc; cg; cg = cgroup_parent(cg)) { in purge_effective_progs()
912 if (pos && !(cg->bpf.flags[atype] & BPF_F_ALLOW_MULTI)) in purge_effective_progs()
915 head = &cg->bpf.progs[atype]; in purge_effective_progs()
1184 struct cgroup *cg; in bpf_cgroup_link_release() local
[all …]