gaokun_ec_ucsi_get_reg(9)
π gaokun_ec_ucsi_get_reg β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual entry for gaokun_ec_ucsi_get_reg(9) β she's a little function, she's lowkey the whole vibe, and she's about to make so much sense to you. sit down, grab a snack π, and let's go.
πΈ NAME πΈ
gaokun_ec_ucsi_get_reg β literally just: get the UCSI register from the EC. that's it. that's the whole job. no cap π
β¨ SYNOPSIS β¨
int gaokun_ec_ucsi_get_reg (struct gaokun_ec *ec , struct
gaokun_ucsi_reg *ureg );
she takes two things and gives you back an int. iconic behavior honestly π«Ά
π ARGUMENTS π
ecβ thegaokun_ecstructure. your main character struct, the one everything else hangs off of β¨uregβ the gaokun UCSI register. this is where the register data ends up, so likeβ¦ she's the destination, the moment, the whole point π
π¦ DESCRIPTION π¦
she gets the UCSI register data β and yes, she's used by the UCSI subdriver, so she's got people depending on her. very main character energy if you think about it π
β RETURN β
0on success π β slay, everything worked- a negative error code if it didn't π β no further detail given, that's just how she is
π₯ SEE ALSO π₯
the kernel file she lives in, for when you need to go straight to the source:
Kernel file ./drivers/platform/arm64/huawei-gaokun-ec.c
and her whole friend group, fr fr β all of these are absolutely worth a read:
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_get_smart_charge_enable(9)gaokun_ec_psy_set_smart_charge_enable(9)gaokun_ec_ucsi_read(9)gaokun_ec_ucsi_write(9)gaokun_ec_ucsi_pan_ack(9)
and that's the page, bestie π this cutie came out of ./drivers/platform/arm64 back in October 2026 β so when you're out here reading gaokun_ec_ucsi_get_reg(9), just know she's been serving register data since then π mwah π
π¦ 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