ladder_do_selection(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ladder_do_selection(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual, and today's main character is ladder_do_selection(9). buckle up, it's short but it matters. ✨


🌸 NAME 🌸

ladder_do_selection β€” prepares private data for a state change

like, it's the lil backstage crew getting everything ready before the outfit change, ykwim? πŸ’…


✨ SYNOPSIS ✨

void ladder_do_selection (struct cpuidle_device *dev , struct
ladder_device *ldev , int old_idx , int new_idx );

no return value, it's giving "void and unbothered" 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the CPU πŸ‘‘ this is the star of the show, the actual processor we're talking about
  • ldev β€” the ladder device πŸͺœ the ladder-governor-specific buddy that hangs out with the CPU
  • old_idx β€” the current state index πŸ“ where we're at right now, the "before" pic
  • new_idx β€” the new target state index 🎯 where we're headed, the "after" pic

literally four arguments, all accounted for, no notes πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

go read those too, they're all in the same friend group fr fr 🧚


ngl, no cap: this page is short and sweet, but every single detail above is the whole page β€” don't skip the arguments, they're the moment πŸ’€

and that's the whole vibe check 🌈 this one lives in ./drivers/cpuidle/governors, dated October 2026 β€” mwah, send it to your bestie, periodt. πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from