gaokun_ec_p...harge_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the gaokun_ec structure πŸ’œ 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:

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