Lines Matching defs:cgroup_id

95 static struct scx_sched *scx_find_sub_sched(u64 cgroup_id)
97 return rhashtable_lookup(&scx_sched_hash, &cgroup_id,
2145 "cgroup %llu going offline", cgroup_id(cgrp));
2219 * @cgroup_id: cgroup ID of the child scheduler to dispatch
2226 * Returns: true on success, false if cgroup_id is invalid, not a direct
2229 __bpf_kfunc bool scx_bpf_sub_dispatch(u64 cgroup_id, const struct bpf_prog_aux *aux)
2239 child = scx_find_sub_sched(cgroup_id);
2246 cgroup_id);
2263 static s32 sub_cap_preamble(u64 cgroup_id, u64 caps, const struct bpf_prog_aux *aux,
2277 child = scx_find_sub_sched(cgroup_id);
2283 parent->cgrp_path, cgroup_id);
2299 * @cgroup_id: cgroup id of the direct child sub-sched
2315 __bpf_kfunc s32 scx_bpf_sub_grant(u64 cgroup_id, u64 caps,
2328 ret = sub_cap_preamble(cgroup_id, caps, aux, &parent, &child);
2426 * @cgroup_id: cgroup id of the direct child sub-sched
2431 * Clear @caps bits on @cmask__arena from the child named by @cgroup_id and all
2435 __bpf_kfunc void scx_bpf_sub_revoke(u64 cgroup_id, u64 caps,
2446 if (sub_cap_preamble(cgroup_id, caps, aux, &parent, &child))
2517 * @cgroup_id: 0 for self, or a direct child's cgroup id
2522 * Read the cap cmasks granted on each cid for self (@cgroup_id 0) or a direct
2526 * Return 0, -ENODEV if @cgroup_id names no direct child, or -EINVAL on bad
2529 __bpf_kfunc s32 scx_bpf_sub_caps(u64 cgroup_id, u64 caps, struct scx_cmask *out__arena,
2553 /* @cgroup_id 0 reads self, otherwise a direct child */
2554 if (cgroup_id) {
2555 target = scx_find_sub_sched(cgroup_id);
2560 sch->cgrp_path, cgroup_id);
2600 * @cgroup_id: cgroup id of the direct child to kill
2614 * Return 0 on success or -ENODEV if @cgroup_id names no sub-scheduler, which
2619 __bpf_kfunc s32 scx_bpf_sub_kill_bstr(u64 cgroup_id, char *fmt,
2636 child = scx_find_sub_sched(cgroup_id);
2642 parent->cgrp_path, cgroup_id);
2656 __bpf_kfunc s32 scx_bpf_sub_grant(u64 cgroup_id, u64 caps,
2664 __bpf_kfunc void scx_bpf_sub_revoke(u64 cgroup_id, u64 caps,
2670 __bpf_kfunc s32 scx_bpf_sub_caps(u64 cgroup_id, u64 caps, struct scx_cmask *out__arena,
2676 __bpf_kfunc s32 scx_bpf_sub_kill_bstr(u64 cgroup_id, char *fmt,