cm_monitor(9)
π NAME π
Hiii bestie π welcome to the cm_monitor(9) page β yep, that's section 9 of the Kernel API Manual, and we're about to make battery monitoring make sense. cm_monitor β monitor every battery. Like, every single one. No battery left behind, periodt. πβ¨
β¨ SYNOPSIS β¨
bool cm_monitor (void );
π ARGUMENTS π
voidβ no arguments. That's the whole vibe: nothing goes in, bestie. Zero. Nada. π«Ά
π₯ DESCRIPTION π₯
Okay so cm_monitor returns true if there is an event to notify from any of the batteries. That's the main character behavior right there. π
Also: it returns true if the status of "emergency_stop" changes. The parentheses said it, so we're saying it too. π
π SEE ALSO π
Kernel file ./drivers/power/supply/charger-manager.c is where the lore lives, and the whole squad is:
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)_setup_polling(9)cm_monitor_poller(9)cm_setup_timer(9)charger_extcon_work(9)charger_extcon_notifier(9)charger_extcon_init(9)charger_manager_register_extcon(9)charger_manager_prepare_sysfs(9)
Okay that's the page, bestie π«Ά it comes from ./drivers/power/supply, dated October 2026, and if you're searching for it again it's cm_monitor(9) β slay π
β¨
π¦ 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