qcom_smem_state_register(9)
β¨ qcom_smem_state_register(9) β¨
okay bestie, welcome to the kernel API manual, the qcom_smem_state_register(9) page specifically π
this one lives in the Kernel API Manual and honestly? it's a little baddie.
π NAME π
qcom_smem_state_register β register a new state π
like, it literally makes a new state happen. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
struct qcom_smem_state * qcom_smem_state_register (struct device_node
*of_node , const struct qcom_smem_state_ops *ops , void *priv );
it hands you back a struct qcom_smem_state *, which is your shiny new state pointer β¨ main character return value energy, fr fr.
π¦ ARGUMENTS π¦
of_nodeβ theof_nodeused for matching client lookups π that's its whole job, it's the matchmaker of this situation.opsβ the implementation ops π the actual behaviour bits.privβ implementation specific private data π«Ά your very own stuff, tucked in there, yours to define.
π₯ SEE ALSO π₯
the girlies you should also be looking at, in the kernel file ./drivers/soc/qcom/smem_state.c:
struct qcom_smem_state(9)qcom_smem_state_update_bits(9)qcom_smem_state_get(9)qcom_smem_state_put(9)devm_qcom_smem_state_get(9)qcom_smem_state_unregister(9)
iykyk β go read those too, they're all part of the same little friend group πβ
bestie reminder:of_nodeis specifically for matching client lookups,opsis the implementation ops, andprivis your implementation specific private data. three arguments, three jobs, no overlap, we love a clear division of labour π
and that's the whole page, you ate that π this little beauty comes from ./drivers/soc/qcom, dated October 2026 β so go forth, register your state, and slay π
ππ§
π¦ 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