gaokun_ec_ps...smart_charge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ gaokun_ec_ps...smart_charge(9) πŸ’œ

okay so this is a page from the Kernel API Manual, and honestly? she's a little function with a big job and i'm obsessed. welcome to the smart-charge corner of the gaokun EC world πŸ¦‹


✨ NAME ✨

gaokun_ec_psy_get_smart_charge β€” literally just Get smart charge data from EC. that's it. that's the whole vibe. it goes and asks the embedded controller for the smart charge numbers and brings them back for you 🫢


🌸 SYNOPSIS 🌸

int gaokun_ec_psy_get_smart_charge (struct gaokun_ec *ec , u8
resp[GAOKUN_SMART_CHARGE_DATA_SIZE] );

yes bestie, that's the whole signature β€” no cap, nothing hidden. returns an int, takes your EC struct and a buffer. periodt πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • ec β€” the gaokun_ec structure. she's the main character here, the handle to everything EC-related, so you will be passing her along 🌈
  • resp β€” the buffer where the response sequence gets stored: (mode, delay, start, end). that's the order, bestie, don't shuffle it πŸ™ˆ

⭐ RETURN ⭐

0 on success, or a negative error code if things go sideways. if you get a negative number, it's giving "not today" energy β€” go check what went wrong 😭


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives right here, and it's basically the group chat this function lives in:

./drivers/platform/arm64/huawei-gaokun-ec.c

and the whole friend group β€” all these manpages are linked up, iykyk:


and that's the page, bestie πŸ’– sign-off time: this one's from the ./drivers/platform/arm64 crew, stamped October 2026, and it's titled gaokun_ec_ps...smart_charge(9) in case you forgot where you were. slay πŸŽ€πŸ‘‘

πŸ“¦ where this page comes from