vmalloc_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vmalloc_node(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” we're doing vmalloc_node, and it's giving β€œI allocate pages on one specific node” energy. ✨


🌸 NAME 🌸

vmalloc_node β€” allocate memory on a specific node πŸ’…

✨ SYNOPSIS ✨

void * vmalloc_node (unsigned long size , int node );

πŸŽ€ ARGUMENTS πŸŽ€

  • size β€” allocation size πŸ“
  • node β€” numa node πŸ¦‹

🌈 DESCRIPTION 🌈

So like, vmalloc_node allocates enough pages to cover size from the page level allocator, then maps them into contiguous kernel virtual space. no cap, that's the vibe. πŸ’–

If you want tight control over the page level allocator and protection flags, use __vmalloc instead β€” that's the one for that job. πŸ‘‘

bestie note: the tight-control route is __vmalloc, not this one. iykyk. πŸ’…

πŸ’« RETURN πŸ’«

A pointer to the allocated memory, or NULL on error. that's it, periodt. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./mm/vmalloc.c β€” and the whole see-also squad is:

mwah πŸ’‹ β€” source/version ./mm, date October 2026. byeee, bestie πŸ’–

πŸ“¦ where this page comes from