__vmalloc_array(9)
β¨ __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 (seekmalloc). yes, the flags go straight tokmalloc's docs, iykyk π
π¦ SEE ALSO π¦
heads up, this is a stacked list β no skimming, bestie, it's all here π«Ά
Kernel file ./mm/util.c
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)
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
- 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