gaokun_ec_p...harge_enable(9)
π gaokun_ec_p...harge_enable(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil function page and honestly it ate. let's get into it π«Ά
β¨ NAME β¨
gaokun_ec_psy_get_smart_charge_enable β bestie, this one literally just gets the smart charge state π that's it, that's the whole job, and it does it slayfully.
π¦ SYNOPSIS π¦
int gaokun_ec_psy_get_smart_charge_enable (struct gaokun_ec *ec , bool
*on );
look at her. iconic signature. returns an int, takes a struct gaokun_ec * and a bool * and off she goes π
πΈ ARGUMENTS πΈ
ecβ thegaokun_ecstructure π this is the main character of the whole operation, no cap.onβ the state π this is where the whole "is smart charge on or not" truth gets dropped.
β RETURN β
returns 0 on success, or a negative error code π so like β zero means we thriving, negative means something went sideways. keep an eye on it fr fr.
π SEE ALSO π
kernel file: ./drivers/platform/arm64/huawei-gaokun-ec.c β that's the home base, go look at it if you're curious π
and the whole friend group, all mutuals, all linked:
gaokun_ec_read(9)gaokun_ec_write(9)gaokun_ec_register_notify(9)gaokun_ec_unregister_notify(9)gaokun_ec_psy_multi_read(9)gaokun_ec_psy_get_smart_charge(9)gaokun_ec_psy_set_smart_charge(9)gaokun_ec_psy_set_smart_charge_enable(9)gaokun_ec_ucsi_read(9)gaokun_ec_ucsi_write(9)gaokun_ec_ucsi_get_reg(9)gaokun_ec_ucsi_pan_ack(9)
like, the whole squad is here π go read them too, iykyk.
and that's the page bestie!! π§ run along now π
source: ./drivers/platform/arm64 Β· version/date: October 2026 Β· mwah, mwah, bye ππ
π¦ 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