kmemleak_ignore(9)
π
kmemleak_ignore(9) β the kmemleak_ignore page, kernel API manual edition
okay so bestie, welcome to the kmemleak_ignore(9) glow-up π this one's a lil kernel API page from the Kernel API Manual, and honestly? it's short, it's sweet, it's giving "one job and she does it." let's get into it β¨
πΈ NAME πΈ
kmemleak_ignore β ignore an allocated object π
like, straight-up tell kmemleak to look away. nothing to see here, ma'am. π
π SYNOPSIS π
void __ref kmemleak_ignore (const void *ptr );
that's it. that's the whole vibe check. one function, one pointer, no drama. π¦
β¨ ARGUMENTS β¨
ptrβ pointer to beginning of the object π«Ά (yes, the beginning β like, the start of it, not some random middle-of-the-struct situation, bestie)
π DESCRIPTION π
okay so here's the tea β β when you call this function on an object, it causes the memory block to be ignored. and when we say ignored, we mean:
- it's not scanned πβ
- it's not reported as a leak π¨β
the way that this is usually done is when it's known that the corresponding block is not a leak, and also does not contain any references to other allocated memory blocks. like, you literally already know she's innocent and she's not snitching on anybody else β so you just tell kmemleak to chill and move on. periodt. πβ¨
π§ friendly lil reminder: this is for blocks you know are fine and reference-free. it's not a "make the warning go away" button, bestie β it's a fact you're stating. π
π₯ SEE ALSO π₯
the whole kmemleak friend group, all iconic, all linked π:
- kernel file
./mm/kmemleak.cβ that's the address, iykyk π kmemleak_alloc(9)kmemleak_alloc_percpu(9)kmemleak_vmalloc(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_scan_area(9)kmemleak_no_scan(9)kmemleak_alloc_phys(9)kmemleak_free_part_phys(9)kmemleak_ignore_phys(9)
and that's the whole page, bestie, no cap π this gem came from ./mm, dated October 2026 β so like, mark your calendar, she's official π mwah, go ignore some objects responsibly ππ
π¦ 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