STRUCT MEM_REGION(9)
π struct mem_region(9) π
okay bestie, welcome to the Kernel API Manual page for struct mem_region β literally the memory region structure, and yes she's iconic β¨
π NAME π
struct mem_region β memory region structure. that's it, that's the vibe. short, sweet, slays π
πΈ SYNOPSIS πΈ
okay so here's the whole struct, no cap, exactly as it is:
struct mem_region {
u64 base;
u64 size;
unsigned long offset;
int destroy;
};
she's four fields and she knows it π¦
β¨ Members β¨
every field gets her moment, bestie:
baseβ base address. the starting point, the origin story, the where it all begins π«Άsizeβ size in bytes. how big she is. measurements matter πoffsetβ difference betweenbaseandrm.size. yes, literallyrm.sizeβ that's what the page says, so that's what you get, iykyk πdestroyβ flag if region should be destroyed upon shutdown. like, is this region getting yeeted at shutdown or not π
π₯ SEE ALSO π₯
okay so there's a lot of friends in this friend group, so let's go β Kernel file ./arch/powerpc/platforms/ps3/mm.c struct map(9), then:
ps3_mm_phys_to_lpar(9)ps3_mm_vas_create(9)ps3_mm_vas_destroy(9)ps3_mm_region_create(9)ps3_mm_region_destroy(9)dma_sb_lpar_to_bus(9)dma_sb_map_pages(9)dma_sb_region_create(9)dma_sb_map_area(9)dma_sb_unmap_area(9)dma_sb_region_create_linear(9)dma_sb_region_free_linear(9)dma_sb_map_area_linear(9)ps3_mm_init(9)ps3_mm_shutdown(9)
like, that's a whole group chat right there π go read them, they're all main character energy π
reminder bestie: these are references to other manual pages β go actually read them before you go touching memory regions, fr fr π
and that's the page!! this one came from ./arch/powerpc/platforms/ps3, dated October 2026, and it's the struct mem_region(9) manual page β mwah, tysm for reading, ily π§ββοΈπβ
π¦ 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