ladder_do_selection(9)
π 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 aboutldevβ the ladder device πͺ the ladder-governor-specific buddy that hangs out with the CPUold_idxβ the current state index π where we're at right now, the "before" picnew_idxβ the new target state index π― where we're headed, the "after" pic
literally four arguments, all accounted for, no notes π
π₯ SEE ALSO π₯
- Kernel file
./drivers/cpuidle/governors/ladder.cπ ladder_select_state(9)ladder_enable_device(9)ladder_reflect(9)init_ladder(9)
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
- 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