th1520_aon_call_rpc(9)
π th1520_aon_call_rpc(9) β Kernel API Manual, bestie edition
okay so this is from the Linux kernel API manual (section 9, the kernel-internals girlies π§) and it's about th1520_aon_call_rpc β the little function that picks up the phone and calls the TH1520 AON subsystem. no cap, it's lowkey important.
β¨ NAME β¨
th1520_aon_call_rpc β send an RPC request to the TH1520 AON subsystem π
πΈ SYNOPSIS πΈ
int th1520_aon_call_rpc (struct th1520_aon_chan *aon_chan , void *msg );
literally that's the whole signature. she's neat, she's tidy, she takes two pointers and gives you back an int. periodt. π
π¦ ARGUMENTS π¦
aon_chanβ a pointer to the AON channel structure. that's your lil phone, bestie πmsgβ a pointer to the message (the RPC payload) that's gonna get sent. this is what you're actually saying on the call π¨
π DESCRIPTION π
so what she does is: this function sends an RPC message to the TH1520 AON subsystem via mailbox π¬. like, it's giving postal service but make it firmware.
she takes the msg buffer you handed her, formats it with version and service flags (it's giving β¨ putting on the lil outfit before the message goes out), and then she blocks until the RPC completes or times out. not "blocks" like a toxic ex, blocks like a synchronous kernel function. she is waiting, bestie π
the completion gets signaled by the aon_chan->done completion, which she waits on for a duration defined by MAX_RX_TIMEOUT β³. so that's the vibe check β if it doesn't come through in that window, we move on.
π₯ RETURN π₯
0β slay! success β¨-ETIMEDOUTβ the RPC call timed out. she waited, it didn't show. we've all been there π- a negative error code β if the mailbox send fails, or if AON responds with a non-zero error code (that one gets converted via
th1520_aon_to_linux_errno). so like, the error gets a whole translation, iykyk π«Ά
ngl, always check the return value. 0 is the only happy path here β everything else is a negative number and she will notice π
π SEE ALSO π
- Kernel file
./drivers/firmware/thead,th1520-aon.cβ go read the source, bestie, it's iconic π th1520_aon_power_update(9)th1520_aon_init(9)th1520_aon_deinit(9)
the whole friend group, fr fr π
and that's the page!! brought to you by ./drivers/firmware, dated October 2026 β from the Kernel API Manual girlies, with love π
ππ
π¦ 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