rpmh_write_batch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is rpmh_write_batch(9) from the Kernel API Manual, and it does exactly what it says on the tin, bestie: write multiple sets of RPMH commands and wait for the batch to finish. πŸ’…


🌸 SYNOPSIS 🌸

int rpmh_write_batch (const struct device *dev , enum rpmh_state state ,
       const struct tcs_cmd *cmd , u32 *n );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device making the request 🫢
  • state β€” Active/sleep set ✨
  • cmd β€” the payload data πŸ’–
  • n β€” the array of count of elements in each batch, 0 terminated. periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

So you're writing a request to the RSC controller without caching. No sneaky cache, no little stash, just straight up sending it. πŸš€

If the request state is ACTIVE, then the requests are treated as a completion request and sent to the controller immediately. The function waits until all the commands are complete. like, it is literally standing there with its little clipboard waiting for everyone to finish. 😭

If the request was to SLEEP or WAKE_ONLY, then the request is sent as fire-n-forget and no ack is expected. bye bestie, no read receipt, we move. πŸ’€

⚠️ May sleep. Do not call from atomic contexts for ACTIVE_ONLY requests. fr fr, that is not the vibe you want. πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie πŸ’– this little cutie comes from the source/version corner at ./drivers/soc/qcom, dated October 2026, and it will forever be known as rpmh_write_batch(9) πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from