STRUCT SMEM_PARTITION(9)
π 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
- 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