STRUCT SMEM_REGION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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