gaokun_ec_ucsi_get_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

  • 0 on 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:


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