STRUCT QCOM_SMSM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct qcom_smsm(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this page is literally all about struct qcom_smsm, aka the smsm driver context. it’s the little bundle the smsm driver carries around, and we’re gonna go through every field like it’s a group-chat screenshot. no cap. 🫢


✨ NAME ✨

struct qcom_smsm β€” the smsm driver context. that’s the whole vibe: this struct is the context for the smsm driver. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

here’s the exact shape of it, bestie β€” fields, pointers, the whole fit:

struct qcom_smsm {
    struct device *dev;
    u32 local_host;
    u32 num_hosts;
    u32 num_entries;
    u32 *local_state;
    u32 *subscription;
    struct qcom_smem_state *state;
    spinlock_t lock;
    struct smsm_entry *entries;
    struct smsm_host *hosts;
    struct mbox_client mbox_client;
 };

πŸŽ€ Members πŸŽ€

  • dev β€” a struct device *; the smsm device pointer. πŸ’–
  • local_host β€” a u32; the column in the subscription matrix representing this system. the way it’s literally this system’s column? iconic. ✨
  • num_hosts β€” a u32; the number of columns in the subscription matrix. counting columns, slay. πŸŽ€
  • num_entries β€” a u32; the number of entries in the state map and rows in the subscription matrix. yes, both. πŸ¦‹
  • local_state β€” a u32 *; pointer to the local processor’s state bits. lowkey important. πŸ’…
  • subscription β€” a u32 *; pointer to the local processor’s row in the subscription matrix. main character row energy. πŸ‘‘
  • state β€” a struct qcom_smem_state *; the smem state handle. handle it. 🫢
  • lock β€” a spinlock_t; spinlock for read-modify-write of the outgoing state. read, modify, write, repeat. πŸ”₯
  • entries β€” a struct smsm_entry *; context for each of the entries. every entry gets its lil context. πŸ“
  • hosts β€” a struct smsm_host *; context for each of the hosts. same vibe, host edition. 🌸
  • mbox_client β€” a struct mbox_client; mailbox client handle. it’s giving mailbox client handle, fr fr. πŸ’Œ

🌈 SEE ALSO 🌈


okay that’s the whole page 🫢 β€” brought to you by ./drivers/soc/qcom, dated October 2026, and filed under struct qcom_smsm(9). byeee πŸ’…βœ¨

πŸ“¦ where this page comes from