new_vmap_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ new_vmap_block(9)

okay so welcome to the Kernel API Manual page for new_vmap_block(9), bestie β€” yes, section (9), kernel API edition. πŸ’…


✨ NAME ✨

new_vmap_block β€” allocates a new vmap_block and occupies 2^order pages in this block. Of course, the number of pages can't exceed VMAP_BBMAP_BITS. 🫢


🌸 SYNOPSIS 🌸

void * new_vmap_block (unsigned int order , gfp_t gfp_mask );

πŸŽ€ ARGUMENTS πŸŽ€

  • order β€” how many 2^order pages should be occupied in the newly allocated block. πŸ¦‹
  • gfp_mask β€” flags for the page-level allocator. ✨

πŸ¦‹ RETURN πŸ¦‹

Returns the virtual address in a newly allocated block, or ERR_PTR(-errno) if it's giving error vibes. 😭


🌈 SEE ALSO 🌈

The kernel file is ./mm/vmalloc.c β€” that's the home base, no cap. The whole vmalloc crew is here too:


mwah πŸ’‹ this page's source/version tag is ./mm, and the date on the manual is October 2026. Go off, bestie. 🧚
πŸ“¦ where this page comes from