scx_skip_subtree_pre(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 moment
  • root β€” 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 NULL if pos's subtree is the last one under root πŸ’€ (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 🧚


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