devm_qcom_smem_state_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_qcom_smem_state_get(9)

okay so bestie, welcome to the Kernel API Manual β€” this one lives in devm_qcom_smem_state_get(9) and it's basically the "get it and forget it" era of acquiring a handle to a devres managed state ✨


🌸 NAME 🌸

devm_qcom_smem_state_get β€” acquire handle to a devres managed state πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct qcom_smem_state * devm_qcom_smem_state_get (struct device *dev ,
const char *con_id , unsigned *bit );

✨ ARGUMENTS ✨

  • dev β€” the client device pointer, aka who's asking πŸ‘‘
  • con_id β€” name of the state to lookup, like the state's little government name πŸͺͺ
  • bit β€” flags from the state reference, indicating which bit's affected πŸ”₯

πŸ’– DESCRIPTION πŸ’–

Returns handle to the state, or ERR_PTR. and here's the iconic part: qcom_smem_state_put is called automatically when dev is removed 🫢 no manual cleanup, no "did I forget to put it back", none of that β€” devres handles it for you, periodt πŸ’…


🌈 SEE ALSO 🌈

Kernel file:

./drivers/soc/qcom/smem_state.c

and the whole friend group:


ngl this page is short but it ate, no cap πŸ’€ go read the smem_state friends next, iykyk 🧚

that's the whole vibe bestie, mwah πŸ’‹ β€” this masterpiece comes from ./drivers/soc/qcom, dated October 2026, under the devm_qcom_smem_state_get(9) banner πŸ“β­πŸ’œ

πŸ“¦ where this page comes from