cm_setup_timer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 true if the alarm is set for Charger Manager to use βœ…
  • it returns false if cm_setup_timer fails to set an alarm, or if cm_setup_timer does 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 πŸ“‹:


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