xen_xlate_m...looned_pages(9)
π xen_xlate_m...looned_pages β like, the Kernel API Manual, but make it make sense β¨
okay so bestie, welcome to the Kernel API Manual entry for xen_xlate_m...looned_pages π yes the name is literally truncated with the ... and no we're not fixing it, that's just how it's living its life. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
xen_xlate_map_ballooned_pages β map a new set of ballooned pages π
πΈ SYNOPSIS πΈ
int xen_xlate_map_ballooned_pages (xen_pfn_t **gfns , void **virt ,
unsigned long nr_grant_frames );
that's the whole vibe, no cap. three arguments, one int coming back at you π¦
π ARGUMENTS π
gfnsβ returns the array of corresponding GFNs β¨ like, it hands you back the array, that's the whole pointvirtβ returns the virtual address of the mapped region π so you know where it actually landednr_grant_framesβ number of GFNs return 0 on success, error otherwise π yeah that's literally what it says, the count of GFNs, and: return0on success, error otherwise. iconic wording, keeping it exactly as-is, not my business to edit π₯
π DESCRIPTION π
so what does it do? it allocates a set of ballooned pages and maps them into the kernel's address space π§ that's it, that's the whole thing, and honestly? slay.
π SEE ALSO π
- Kernel file
./drivers/xen/xlate_mmu.cβ go read it, iykyk π
π friendly reminder from your girl: nr_grant_frames says "return 0 on success, error otherwise" β so like, check your return value, bestie, always check your return value.
and that's the page!! mwah π
β brought to you by the lovely humans at ./drivers/xen, dated October 2026, which is honestly giving time traveler energy π¦β¨ 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