gaokun_ec_ucsi_write(9)
π gaokun_ec_ucsi_write β a kernel manual page, but make it cute
okay so bestie, welcome to gaokun_ec_ucsi_write(9) from the Kernel API Manual β yes it's a real section-9 page, yes we're doing this, and yes it slays β¨
πΈ NAME πΈ
gaokun_ec_ucsi_write β literally just "Write UCSI data to EC" π
that's the whole vibe, no cap
π¦ SYNOPSIS π¦
int gaokun_ec_ucsi_write (struct gaokun_ec *ec , const u8
req[GAOKUN_UCSI_WRITE_SIZE] );
look at her, she's iconic, she's taking two arguments and she's gonna give you back an int π
π ARGUMENTS π
ecβ thegaokun_ecstructure π«Ά that's your main character right therereqβ the sequence to request β¨ this is the actual content you're sending through
π DESCRIPTION π
so what does she do? she writes CTRL and MSGO β and yes those are used by the UCSI subdriver, iykyk π₯
that's it. that's the description. short and perfect, honestly obsessed π
β RETURN β
0on success π (slay)- a negative error code when it goes wrong π (not slay, but we respect the honesty)
π SEE ALSO π
okay this is the friend group, all linked together, all valid, let's go through the roster π
- Kernel file
./drivers/platform/arm64/huawei-gaokun-ec.cπ§ β go read her 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_get_reg(9)gaokun_ec_ucsi_pan_ack(9)
π‘ friendly reminder bestie: every single one of those is a real page, so go click through them all, no skipping π«Ά
and that's the whole page!! mwah π this lil diva lives in ./drivers/platform/arm64 and the version is dated October 2026 β so like, she's from the future, main character energy fr fr π¦β¨π
π¦ 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