STRUCT SMEM_REGION(9)
π struct smem_region(9) β Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual and it's literally about one little struct, struct smem_region, and we're gonna get into it. no cap, it's short and adorable. π
β¨ NAME β¨
struct smem_region β the representation of a chunk of memory used for smem. that's it, that's the vibe. one chunk, one struct, main character energy. π
πΈ SYNOPSIS πΈ
here's the whole glow-up, verbatim, don't touch:
struct smem_region {
phys_addr_t aux_base;
void __iomem *virt_base;
size_t size;
};
three fields. iconic. not one more, not one less. π¦
π Members π
aux_baseβ the identifier of the aux_mem base. like the name tag at a party but for memory. π·οΈvirt_baseβ the virtual base address of the memory that's rockin' this aux_mem identifier. same identifier, but the virtual side of the story. β¨sizeβ the size of the memory region. how much memory we're talking about. the actual amount. π
π₯ SEE ALSO π₯
bestie, the lore runs DEEP. check the kernel file ./drivers/soc/qcom/smem.c, and then go meet the whole friend group:
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_partition(9)struct smem_private_entry(9)struct smem_info(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)
lowkey a whole extended universe. read them all, iykyk. π
and that's the page!! sign-off time: this lil masterpiece came from ./drivers/soc/qcom, dated October 2026. go off, struct smem_region(9). we love you. periodt. ππ
π¦ 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