STRUCT VMEM_ALTMAP(9)
π struct vmem_altmap(9) π
okay bestie, welcome to the Kernel API Manual page for struct vmem_altmap β it's giving pre-allocated storage for vmemmap_populate, and we're keeping every last field. no cap. β¨
πΈ NAME πΈ
struct vmem_altmap β literally pre-allocated storage for vmemmap_populate. that's the whole name and the whole vibe, slay π«Ά
π¦ SYNOPSIS π¦
struct vmem_altmap {
unsigned long base_pfn;
const unsigned long end_pfn;
const unsigned long reserve;
unsigned long free;
unsigned long align;
unsigned long alloc;
};
π Members π
base_pfnβ base of the entiredev_pagemapmapping. like, the starting point, iykyk.reserveβ pages mapped, but reserved for driver use (relative to base). mapped but set aside for the driver, bestie.freeβ free pages set aside in the mapping for memmap storage. the set-aside girlies πalignβ pages reserved to meet allocation alignments. alignment matters, fr fr.allocβ track pages consumed, private tovmemmap_populate. private means private β not for the group chat π
also end_pfn is right there in the struct β this page just doesn't give it its own member line, and I'm not out here inventing facts π
π SEE ALSO π
- Kernel file
./include/linux/memremap.h struct dev_pagemap(9)
mwah π β this page is from ./include/linux, October 2026. byeee π«Ά
π¦ 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