__rpmh_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 in
  • rpm_msg β€” the actual data that needs to be sent (the cmds), 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:

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