kzalloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– kzalloc(9) πŸ’–

okay so bestie, we're in the Kernel API Manual today and this page is literally about kzalloc β€” yes that's the kernel one, not some random thing, iykyk. buckle up πŸŽ€


✨ NAME ✨

kzalloc β€” allocate memory. The memory is set to zero. 🫢

that's it. that's the whole personality. it allocates, it zeroes, it slays.


🌸 SYNOPSIS 🌸

void * kzalloc (size_t size , gfp_t flags );

look at her. two arguments, one return, zero drama. main character energy for real πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • size β€” how many bytes of memory are required. like, how much room does your little guy need. count the bytes, bestie, the kernel is not gonna do it for you πŸ’€
  • flags β€” the type of memory to allocate (see kmalloc). yep, so if you're confused about the flags situation, the kmalloc page is right there, go read it, it's giving reference material ✨

🌈 SEE ALSO 🌈

the whole friend group showed up, no cap πŸ‘‘

like, that's a full roster. every single one of them. periodt πŸ’œ


and that's the page, bestie πŸ“ everything above is straight facts, no invented lore, promise πŸ™ˆ

this one came from the source at ./include/linux, dated October 2026, and it's filed under kzalloc(9) β€” mwah, go allocate something, love u πŸ˜­πŸ’–πŸ§š

πŸ“¦ where this page comes from