gaokun_ec_register_notify(9)
β¨ 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β Thegaokun_ecstructure. 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:
gaokun_ec_read(9)gaokun_ec_write(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_get_reg(9)gaokun_ec_ucsi_pan_ack(9)
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
- 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