cm_get_target_status(9)
π cm_get_target_status(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this little page right here is all about cm_get_target_status(9), and honestly? she's a vibe check for your battery ππ
π NAME π
cm_get_target_status β check the current status and get the next target status π«Ά
like, she peeks at where your charger situash is right now and then tells you where it's supposed to go next. main character energy fr fr π
β¨ SYNOPSIS β¨
int cm_get_target_status (struct charger_manager *cm );
that's it, that's the whole call π
returns an int, takes one pointer, no cap.
πΈ ARGUMENTS πΈ
cmβ the Charger Manager representing the battery ππ§ like, this is the struct that's holding the whole charger situation together, and you're handing it over so she can do her thing.
π¦ SEE ALSO π¦
bestie there are so many siblings in this family, buckle up π β all of these live in the 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_monitor(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)
literally the whole friend group ππ go read them, they're iconic.
πΈ okay that's the page!! πΈ
cute little sign-off for you: this one comes from ./drivers/power/supply, dated October 2026, and yeah β that's genuinely the whole cm_get_target_status(9) moment. go forth and check those target statuses, bestie π«Άβ¨π
π¦ 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