cm_setup_timer(9)
π cm_setup_timer(9) β the kernel API manual, bestie edition β¨
okay so picture this: it's the cm_setup_timer(9) page from the Kernel API Manual, and it's here to explain how in-suspend monitoring sets up its wakeup alarm for suspend_again. yes that's a lot of words, we're getting through them together π«Ά
πΈ NAME πΈ
cm_setup_timer β literally the function that does in-suspend monitoring setup for the wakeup alarm, for suspend_again. that's the whole vibe check.
β¨ SYNOPSIS β¨
bool cm_setup_timer (void );
π ARGUMENTS π
voidβ no arguments. zero. none. it takes nothing, it needs nothing, it's giving self-sufficient main character energy π
π DESCRIPTION π
so here's the tea, bestie:
- it returns
trueif the alarm is set for Charger Manager to use β - it returns
falseifcm_setup_timerfails to set an alarm, or ifcm_setup_timerdoes not need to set an alarm for Charger Manager, or if an alarm that was previously configured is the one to be used π
like, all three of those false situations are in the same bucket, fr fr. don't come for me, that's just how it is.
π¦ SEE ALSO π¦
the kernel file is ./drivers/power/supply/charger-manager.c and honestly it's the whole friend group, so let's do the roll call π:
is_batt_present(9)is_ext_pwr_online(9)get_batt_uV(9)is_charging(9)is_full_charged(9)is_polling_required(9)try_charger_enable(9)check_charging_duration(9)cm_get_target_status(9)_cm_monitor(9)cm_monitor(9)_setup_polling(9)cm_monitor_poller(9)charger_extcon_work(9)charger_extcon_notifier(9)charger_extcon_init(9)charger_manager_register_extcon(9)charger_manager_prepare_sysfs(9)
ngl, that SEE ALSO list is long but every single one of them ate π₯ go read them, iykyk
p.s. this icon of a page lives in ./drivers/power/supply, it's dated October 2026, and it answers to cm_setup_timer(9) β periodt. mwah ππ
π¦ 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