th1520_aon_power_update(9)
๐ th1520_aon_power_update(9) โ the Kernel API Manual glow-up โจ
ok so bestie, welcome to the th1520_aon_power_update page from the Kernel API Manual ๐ this one's a little function with a big job: telling the TH1520 AON subsystem to flip a resource's power on or off. no cap, it's giving "tiny but essential." ๐ฆ
โจ NAME โจ
th1520_aon_power_update โ change the power state of a resource via TH1520 AON ๐
๐ธ SYNOPSIS ๐ธ
int th1520_aon_power_update (struct th1520_aon_chan *aon_chan , u16 rsrc , bool power_on );
like, look at her. three args, returns an int. iconic. ๐
๐ซถ ARGUMENTS ๐ซถ
aon_chanโ pointer to the AON channel structure. your little handle to the channel, bestie ๐rsrcโ the resource ID whose power state needs updating. au16, so it's a number, not a vibe ๐power_onโ a boolean:truemeans the resource should be powered on,falsemeans powered off. it's literally just on or off, no in-between main character energy ๐ฅ
๐ง DESCRIPTION ๐ง
okay so here's the tea โ โ this function asks the TH1520 AON subsystem to set the power mode of the given resource (rsrc) to either on or off. simple as that.
the way it does it: it constructs the message in struct th1520_aon_msg_req_set_resource_power_mode, and then it invokes th1520_aon_call_rpc to actually make the request. ๐
and if the AON call fails? it logs an error message, and it logs the specific return code too, so you're never left guessing what went wrong. helpful queen behavior fr fr ๐
๐ RETURN ๐
0on success โญ (slay)- a negative error code in case of failures โ and that error code is propagated from
th1520_aon_call_rpc, so it's their business, not hers ๐
๐ฎ SEE ALSO ๐ฎ
- Kernel file
./drivers/firmware/thead,th1520-aon.c th1520_aon_call_rpc(9),th1520_aon_init(9),th1520_aon_deinit(9)
ngl bestie, if this call fails, check the error message and the return code in the log โ the specific return code comes straight through from th1520_aon_call_rpc, iykyk ๐
and that's the whole page, periodt ๐ซถ this little diva lives in ./drivers/firmware, dated October 2026, and she's serving Kernel API Manual energy from the very first line to the last ๐ธโจ๐
๐ฆ 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