__rpmh_write(9)
π NAME π
okay so bestie, this is __rpmh_write β the double-underscore icon herself β and her whole job is literally cache and send the RPMH request β¨
π SYNOPSIS π
int __rpmh_write (const struct device *dev , enum rpmh_state state ,
struct rpmh_request *rpm_msg );
she takes three things and gives you back an int, that's the whole vibe π
πΈ ARGUMENTS πΈ
devβ the device that's making the request, like the one actually asking for this π«Άstateβ the Active/Sleep request type, so she knows what kind of mood we're inrpm_msgβ the actual data that needs to be sent (thecmds), the payload, the whole point π
π¦ DESCRIPTION π¦
so here's the tea, bestie: __rpmh_write caches the RPMH request, and then she sends it if the state is ACTIVE_ONLY. that's it, that's the condition π₯
but the SLEEP/WAKE_ONLY requests? nope, she does not send those to the controller at this time. they just sit there, cached, chilling π
when you're actually ready to send those ones to the controller, you use rpmh_flush β that's her moment, not this function's moment, iykyk π
β SEE ALSO β
the kernel file for all of this lives at ./drivers/soc/qcom/rpmh.c, and she's got a whole friend group:
- struct
cache_req(9) - struct
batch_cache_req(9) rpmh_read(9)rpmh_write_async(9)rpmh_write(9)rpmh_write_batch(9)rpmh_flush(9)rpmh_invalidate(9)
go say hi to all of them, they're iconic π
and that's the page, bestie π§ from ./drivers/soc/qcom, dated October 2026, and yes the title is still __rpmh_write(9) because we don't change the facts around here β periodt ππ«
π¦ 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