STRUCT SMEM_PARTITION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so this is the Kernel API Manual entry for struct smem_partition(9) β€” literally the little struct that describes an smem partition. Bestie, it’s giving β€œsmall but important kernel data structure” energy, and we’re gonna read it together. πŸŽ€

✨ NAME ✨

struct smem_partition β€” describes smem partition. That’s the whole name vibe: it’s a struct, and it describes an smem partition. iconic. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct smem_partition {
           void __iomem *virt_base;
           phys_addr_t phys_base;
           size_t cacheline;
           size_t size;
        };

πŸ’… Members πŸ’…

These are the four fields, and yes, we’re listing every single one because we do not skip. 🫢

  • virt_base β€” the starting virtual address of the partition. like the partition’s virtual-address origin point ✨
  • phys_base β€” the starting physical address of the partition. the physical-address origin point, matching energy πŸ’«
  • cacheline β€” the alignment for "cached" entries. yes, with the quotes, that’s the detail πŸŽ€
  • size β€” size of the partition. literally the size, no plot twist πŸ’€

πŸ”— SEE ALSO πŸ”—

okay bestie, if u wanna go deeper (and we know u do), the kernel file to peek at is ./drivers/soc/qcom/smem.c. Also these iconic references are right there in the manual: struct smem_proc_comm(9), struct smem_global_entry(9), struct smem_header(9), struct smem_ptable_entry(9), struct smem_ptable(9), struct smem_partition_header(9), struct smem_private_entry(9), struct smem_info(9), struct smem_region(9), struct qcom_smem(9), qcom_smem_bust_hwspin_lock_by_host(9), qcom_smem_is_available(9), qcom_smem_alloc(9), qcom_smem_get(9), qcom_smem_get_free_space(9), qcom_smem_virt_to_phys(9), qcom_smem_get_soc_id(9), qcom_smem_get_feature_code(9).


that’s the whole page, bestie. source/version: ./drivers/soc/qcom; date: October 2026. go forth and slay ur kernel reading πŸ’…πŸ’–

πŸ“¦ where this page comes from