gaokun_ec_register_notify(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to gaokun_ec_register_notify(9) β€” the Kernel API Manual page for this lil EC-notify registration moment. It’s giving β€œregister a notifier callback for EC events,” and the vibe check is simple: hand over the right struct and the right notifier block, and you’re slaying. πŸ’…

gaokun_ec_register_notify β€” register a notifier callback for EC events. πŸ¦‹ no cap, literally what it says on the tin.


🌸 SYNOPSIS 🌸

Here’s the exact summoning circle, bestie β€” copy it character for character:

int gaokun_ec_register_notify (struct gaokun_ec *ec , struct
notifier_block *nb );

The way that signature is formatted is iconic β€” keep the spacing and line break fr fr. ✨


πŸŽ€ ARGUMENTS πŸŽ€

These are the two besties you gotta pass in:

  • ec β€” The gaokun_ec structure. That’s the EC main character right there. πŸ‘‘
  • nb β€” Notifier block pointer to register. Hand over the pointer, let it register, periodt. πŸ’–

πŸ’« RETURN πŸ’«

0 on success or negative error code. That’s it. No mysterious side-quest vibes β€” just the classic kernel return situation. ✨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/platform/arm64/huawei-gaokun-ec.c β€” the source file, iykyk. πŸ“

Then the whole bestie lineup:


and that’s the whole page, bestie. 🫢 This one lives under ./drivers/platform/arm64, and the date on it is October 2026. Go forth and register those notifiers responsibly. πŸ’œ

πŸ“¦ where this page comes from