vcalloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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