scx_skip_subtree_pre(9)
β¨ scx_skip_subtree_pre(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a lil function called scx_skip_subtree_pre and honestly? it's giving "skip to the good part" energy π
it's a 9-section kernel page, so grab your matcha and let's go π
πΈ NAME πΈ
scx_skip_subtree_pre β skip @pos's subtree in a pre-order walk π¦
like literally, you're walking a tree, and you decide "nope, not this branch, we're done here" and you jump past it. iconic behavior tbh.
β¨ SYNOPSIS β¨
struct scx_sched * scx_skip_subtree_pre (struct scx_sched *pos , struct
scx_sched *root );
that's the whole signature bestie β takes a pos and a root, hands you back a struct scx_sched *. no cap.
π ARGUMENTS π
posβ your current position π like where you are in the walk right now, main character of the momentrootβ the walk root π the top of the tree you're wandering around in, the final boss of the hierarchy
π DESCRIPTION π
so here's the vibe: you started a walk with scx_next_descendant_pre, right? and now you wanna continue past pos's subtree π«Ά not into it, not doing it, moving on.
what it does is it returns:
pos's next sibling π¦- or, if there isn't one, the closest ancestor's next sibling πΈ
- or
NULLifpos's subtree is the last one underrootπ (end of the line, nothing left, we out)
heads up bestie: same locking rules apply. no new rules, no plot twist, literally the exact same locking situation as the walk you came from. don't get cute with it π₯
π SEE ALSO π
Kernel file ./kernel/sched/ext/sub.c β and like, a whole friend group of functions, all of them linked below, all of them part of this same little kernel-scheduler family π§
scx_next_descendant_pre(9)scx_rescue_charge(9)scx_rescue_end(9)scx_rescue_keep(9)scx_rescue_accrue(9)scx_rescue_admit(9)scx_rescue_try_admit(9)scx_rescue_check_overload(9)scx_rescue_timerfn(9)scx_resolve_local_dsq(9)queue_sync_ecaps(9)scx_process_sync_ecaps(9)scx_unbypass_replay_ecaps(9)scx_discard_stale_ecaps_syncs(9)scx_rehome_task(9)scx_punt_task(9)scx_cgroup_claim_subtree(9)scx_cgroup_return_subtree(9)scx_cgroup_task_migrating(9)scx_cgroup_task_migrated(9)scx_cgroup_task_migrate_canceled(9)scx_bpf_sub_dispatch(9)scx_bpf_sub_grant(9)scx_bpf_sub_revoke(9)scx_bpf_sub_caps(9)scx_bpf_sub_kill_bstr(9)
and that's the page!! π
written under ./kernel/sched/ext, dated October 2026, and yeah β that's the source and the date, so you know exactly when this lil slice of kernel lore was cooked. periodt. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms