menu_select(9)
π menu_select(9) β the kernel API manual, bestie edition π
okay so real talk, we're deep in the kernel API manual rn and this page is all about menu_select β yes that's the function menu_select, and yes it's giving main character energy in the cpuidle menu governor β¨
πΈ NAME πΈ
menu_select β literally picks out the next idle state to enter π
π¦ SYNOPSIS π¦
int menu_select (struct cpuidle_driver *drv , struct cpuidle_device *dev
, bool *stop_tick );
π ARGUMENTS π
drvβ the cpuidle driver, and it's the one holding all the state data, iykyk ποΈdevβ the CPU. that's it. that's the CPU bestie πstop_tickβ an indication on whether or not to stop the tick β° (it's telling you, not asking)
π SEE ALSO π
- Kernel file
./drivers/cpuidle/governors/menu.cπ menu_reflect(9)menu_update(9)menu_enable_device(9)init_menu(9)
fr fr go read those next, they're the whole friend group π«Ά
and that's the whole page, no cap π this absolute gem lives over in ./drivers/cpuidle/governors, dated October 2026 β screenshot it, cite it, obsess over it πβ¨
π¦ 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