gaokun_ec_p...harge_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME

Ok so bestie, gather round β€” this is gaokun_ec_psy_set_smart_charge_enable, and its whole personality is: set the smart charge state. That's it, that's the vibe. πŸ’…

We're in section 9 of the Kernel API Manual today, and yes, the page title is exactly gaokun_ec_p...harge_enable(9) β€” the truncation is giving main-character brevity and we respect it. πŸŽ€


✨ SYNOPSIS

int gaokun_ec_psy_set_smart_charge_enable (struct gaokun_ec *ec , bool
on );

So you hand it a struct gaokun_ec * and a bool, and it returns an int. Boom. Signature served. πŸ”₯


🫢 ARGUMENTS

  • ec β€” The gaokun_ec structure. That's your whole EC situation right there, bestie, you gotta pass it in. ✨
  • on β€” The state. Like, the state. Turn-the-thing-on-or-off energy. bool. Iconic. πŸ’–

πŸ‘‘ RETURN

Returns 0 on success, or a negative error code if it's not giving success. No cap β€” zero is the good number here, negative means something went sideways. 😭


πŸ¦‹ SEE ALSO

The kernel file is right here, exactly as written:

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

And look at this whole friend group, all the related calls pulling up together β€” squad goals fr fr 🌈:

Notice how there's a get and a set for smart_charge_enable? Yeah β€” this page is the set one. The getter is right there chilling in the list. Iykyk πŸ’œ


Lowkey the whole page fits in your pocket: pass the gaokun_ec struct, pass true or false, get 0 or a negative error code back. Slay. 🧚

And that's the page! Sourced from ./drivers/platform/arm64, dated October 2026 β€” so it's a little time traveler from the future, and honestly? Obsessed. πŸ“ Thanks for reading, bestie β€” go set some smart charge state, you absolute icon. 🩷⭐

πŸ“¦ where this page comes from