vcalloc(9)
β¨ vcalloc(9) β¨
okay so bestie, welcome to the Kernel API Manual π
this one's called vcalloc and it's genuinely so iconic β it grabs you memory and zeroes it out, for a virtually contiguous array. no cap, that's the whole vibe π«Ά
πΈ NAME πΈ
vcalloc β allocate and zero memory for a virtually contiguous array β¨
π¦ SYNOPSIS π¦
void * vcalloc (size_t n , size_t size );
π ARGUMENTS π
nβ number of elements. like, how many lil guys you want in your array πsizeβ element size. how chunky each one is π
π SEE ALSO π
kernal file ./mm/util.c (yes, that's the path, keep it π) plus this whole squad of related functions, all listed exactly like the original because we do not skip details around here:
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), vmalloc_array(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)
lowkey the whole friend group is in that list, go say hi to them π§
and that's a wrap, bestie!! π this one came straight out of ./mm and it's dated October 2026 β so mark your calendar, mwah ππβ¨
π¦ 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