cm_monitor_poller(9)
π cm_monitor_poller(9) β like, the whole Kernel API Manual moment, bestie
okay so welcome to the group chat, this is cm_monitor_poller(9) from the Kernel API Manual and honestly? she's a little workhorse and we're obsessed π
β¨ NAME β¨
cm_monitor_poller β the Monitor / Poller. that's it, that's the vibe. two jobs, zero drama π
π¦ SYNOPSIS π¦
void cm_monitor_poller (struct work_struct *work );
literally one line, no cap β she takes one thing and returns void. icon behaviour honestly π
πΈ ARGUMENTS πΈ
workβ the work_struct of the functioncm_monitor_poller. yes bestie, she gets handed her own lil work item and she runs with it π«Ά
β DESCRIPTION β
so here's the tea π β during the non-suspended state (read: while the system is awake and not napping), cm_monitor_poller is the one that's used to poll and monitor the batteries. that's her whole main character arc. she polls, she monitors, she keeps an eye on the battery situation. lowkey essential, highkey underrated π₯
ngl, note the non-suspended bit β that's the condition the original gives us, and we're not adding anything on top, periodt π
π§ SEE ALSO π§
okay gather round, because the extended fam is LONG and every single one of them deserves a shoutout ππ
- Kernel file
./drivers/power/supply/charger-manager.c 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_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)
like, the whole charger-manager friend group showed up to the function party and we love that for them ππ
okay that's the page!! mwah π this lil gem lives in ./drivers/power/supply, dated October 2026 β so go forth, poll responsibly, and remember: the battery is always watching π¦β¨
π¦ 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