charger_extcon_notifier(9)
π charger_extcon_notifier(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to the Kernel API Manual page for charger_extcon_notifier(9) β yes the (9) is the section, we love a classic π
β¨ NAME β¨
charger_extcon_notifier β lowkey the vibe-checker of charger cables: it receives the state of the charger cable when a registered cable gets attached or detached. that's it, that's the whole job. iconic. π
πΈ SYNOPSIS πΈ
int charger_extcon_notifier (struct notifier_block *self , unsigned long
event , void *ptr );
like, exactly that. copy it character for character bestie, no cap π
π¦ ARGUMENTS π¦
selfβ the notifier block of thecharger_extcon_notifier. it's literally the notifier block, its own little home. π«Άeventβ the cable state. this is the tea β the cable is spilling.ptrβ the data pointer of the notifier block. just a pointer, doing pointer things. β¨
π SEE ALSO π
before you go β the kernel file ./drivers/power/supply/charger-manager.c is where all the friends live, and honestly you should meet the whole group chat:
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)cm_setup_timer(9)charger_extcon_work(9)charger_extcon_init(9)charger_manager_register_extcon(9)charger_manager_prepare_sysfs(9)
every single one, all seventeen of them, present and accounted for, periodt π₯
ngl there's no DESCRIPTION section on this page and no options to list β that's not me being lazy, that's the actual page. we keep the facts, we just add the sparkle π
and that's a wrap, bestie! π this masterpiece comes to you straight from ./drivers/power/supply and it's dated October 2026 β β go forth, read the source, slay, the end πβ¨π
π¦ 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