rpmh_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– rpmh_read(9) β€” read a resource value πŸ’–

okay so welcome to the Kernel API Manual page for rpmh_read(9), bestie. This one is short and sweet: it reads a resource value. No cap. ✨


🌸 NAME 🌸

rpmh_read β€” Read a resource value. That's the whole name-section vibe. πŸ’…

✨ SYNOPSIS ✨

the signature is literally:

int rpmh_read (const struct device *dev , struct tcs_cmd *cmd );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device making the request. It's the one doing the asking, okay? 🫢
  • cmd β€” the payload having the address of the resource to read. Yes, this is the payload carrying the address. πŸ’Œ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: rpmh_read reads the value for the resource address given in tcs_cmd->addr, and returns the tcs_cmd->data filled with the same. So the address goes in, and the data comes back filled. Iconic. πŸ’«

πŸ’… CONTEXT πŸ’…

⚠️ May sleep. Do not call from atomic contexts. ⚠️

This function may sleep, bestie, so do not call it from atomic contexts. That part is important β€” no atomic-context chaos allowed. 😭

🌈 RETURN 🌈

  • 0 on success β€” slay βœ…
  • negative errno on failure β€” the sad path πŸ’€

πŸ’œ SEE ALSO πŸ’œ

source/version: ./drivers/soc/qcom Β· date: October 2026 Β· page: rpmh_read(9) β€” mwah, bestie πŸ’‹

πŸ“¦ where this page comes from