rpmh_read(9)
π 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 π
0on success β slay β- negative errno on failure β the sad path π
π SEE ALSO π
- Kernel file
./drivers/soc/qcom/rpmh.c - struct
cache_req(9) - struct
batch_cache_req(9) __rpmh_write(9)rpmh_write_async(9)rpmh_write(9)rpmh_write_batch(9)rpmh_flush(9)rpmh_invalidate(9)
source/version: ./drivers/soc/qcom Β· date: October 2026 Β· page: rpmh_read(9) β mwah, bestie π
π¦ 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