kmemleak_vmalloc(9)
π 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 tovm_struct. it's the struct, bestie, hand it over π«Άsizeβ size of the object. yes, the actual size, no vibes-based guessing πgfpβ the__vmallocflags 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:
kmemleak_alloc(9)kmemleak_alloc_percpu(9)kmemleak_free(9)kmemleak_free_part(9)kmemleak_free_percpu(9)kmemleak_update_trace(9)kmemleak_not_leak(9)kmemleak_transient_leak(9)kmemleak_ignore_percpu(9)kmemleak_ignore(9)kmemleak_scan_area(9)kmemleak_no_scan(9)kmemleak_alloc_phys(9)kmemleak_free_part_phys(9)kmemleak_ignore_phys(9)
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
- 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