vmalloc_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ vmalloc_array(9) ✨

okay bestie, welcome to the vmalloc_array(9) page, straight out of the Kernel API Manual πŸ’– no cap, this one's short and sweet, so let's get into it πŸŽ€


πŸ¦‹ NAME πŸ¦‹

vmalloc_array β€” allocate memory for a virtually contiguous array πŸ’…

like, a whole array, all virtually contiguous, living its best life ✨


🌸 SYNOPSIS 🌸

void * vmalloc_array (size_t n , size_t size );

the whole vibe in one line, periodt πŸ‘‘


πŸ’œ ARGUMENTS πŸ’œ

  • n β€” number of elements. as in, how many lil guys you're fitting in there 🫢
  • size β€” element size. as in, how big each of those lil guys is πŸ“

that's it. that's the whole argument list. main character energy honestly 😭


πŸ”₯ SEE ALSO πŸ”₯

this is the part where we shout out everybody in the group chat πŸ’€ the kernel file is ./mm/util.c, and the whole squad is:

kfree_const(9), __kmemdup_nul(9), kstrdup(9), kstrdup_const(9), kstrndup(9), kmemdup(9), kmemdup_array(9), kvmemdup(9), kmemdup_nul(9), memdup_user(9), vmemdup_user(9), strndup_user(9), memdup_user_nul(9), randomize_page(9), __account_locked_vm(9), account_locked_vm(9), __vmalloc_array(9), __vcalloc(9), vcalloc(9), folio_mapping(9), folio_copy(9), get_cmdline(9), mem_dump_obj(9), compat_set_desc_from_vma(9), __compat_vma_mmap(9), compat_vma_mmap(9), snapshot_page(9), mmap_action_prepare(9), mmap_action_complete(9), folio_pte_batch(9), page_range_contiguous(9)

like literally the entire friend group, iykyk 🌈


and that's the page!! 🧚 this lil gem lives under ./mm and it's dated October 2026 ⭐ go forth and allocate, bestie, you're gonna slay πŸ’…πŸ‘‘πŸ’–

πŸ“¦ where this page comes from