__vmalloc_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __vmalloc_array(9) ✨

ok bestie, welcome to the Kernel API Manual πŸ’… this one's short and sweet β€” it's __vmalloc_array, and it is literally the moment when you need a whole array of stuff to live in memory that's virtually contiguous πŸ¦‹


πŸŽ€ NAME πŸŽ€

__vmalloc_array β€” allocate memory for a virtually contiguous array. that's it. that's the whole vibe. ✨


🌸 SYNOPSIS 🌸

void * __vmalloc_array (size_t n , size_t size , gfp_t flags );

πŸ’– ARGUMENTS πŸ’–

  • n β€” number of elements. how many lil guys are we fitting in here πŸ‘‘
  • size β€” element size. how chunky each one is πŸ“
  • flags β€” the type of memory to allocate (see kmalloc). yes, the flags go straight to kmalloc's docs, iykyk πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

heads up, this is a stacked list β€” no skimming, bestie, it's all here 🫢

Kernel file ./mm/util.c


and that's a wrap, bestie πŸ’œ this lil page comes to you from ./mm, dated October 2026 β€” no cap, that's the version and the date, and it is iconic 🌈⭐ go allocate responsibly βœ¨πŸŽ€

πŸ“¦ where this page comes from