kmemleak_vmalloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– kmemleak_vmalloc β€” the kernel API manual, but make it make sense πŸ’–

okay so bestie, this one's a kernel API page from the 9 section (that's the "kernel internals" shelf, iykyk) 🧚✨


✨ NAME ✨

kmemleak_vmalloc β€” the little function that registers a freshly vmalloc'ed object with kmemleak πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

void __ref kmemleak_vmalloc (const struct vm_struct *area , size_t size
, gfp_t gfp );

🌸 ARGUMENTS 🌸

  • area β€” pointer to vm_struct. it's the struct, bestie, hand it over 🫢
  • size β€” size of the object. yes, the actual size, no vibes-based guessing πŸ’…
  • gfp β€” the __vmalloc flags used for kmemleak's own internal memory allocations. it's giving "budget allocation energy" but for kmemleak itself ✨

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜•: this function gets called from the vmalloc kernel allocator whenever a brand-new object (memory block) gets allocated. that's it. that's the whole job. it registers the new thing so kmemleak knows what's up πŸ‘‘

no cap, it's the main character of the vmalloc allocation moment 🌈

πŸ”₯ SEE ALSO πŸ”₯

sister functions, the whole friend group, all in the kernel file ./mm/kmemleak.c:


fr fr go read ./mm/kmemleak.c if you wanna see the whole squad in their natural habitat πŸ’€

and that's the page, bestie πŸ“ this icon lives in the ./mm directory, dated October 2026, and it's filed under kmemleak_vmalloc(9) β€” slay, go forth and leak nothing πŸ’…πŸ‘‘πŸ’–

πŸ“¦ where this page comes from