kmemleak_transient_leak(9)
π kmemleak_transient_leak(9) β a Kernel API Manual moment π
okay so bestie, welcome to the kmemleak_transient_leak page, straight out of the Kernel API Manual. it's a tiny one but she's important, i promise π«Ά
β¨ NAME β¨
kmemleak_transient_leak β mark an allocated object as transient false positive π
πΈ SYNOPSIS πΈ
void __ref kmemleak_transient_leak (const void *ptr );
π ARGUMENTS π
ptrβ pointer to beginning of the object. literally just hand her the start of the block, that's it, that's the whole assignment π
π¦ DESCRIPTION π¦
so here's the vibe: if you call this function on an object, the memory block will not be reported as a leak temporarily. yes, temporarily, she's on a little break, do not perceive her π
when does that even happen? say the object is part of a singly linked list and the ->next reference to it gets changed β the tracker can lose sight of it for a sec, and that's exactly the situation this function is for. no cap, it's giving "she's not lost, she's just between references" β¨
heads up: the whole point is that it's transient β this keeps the block out of the leak report for the moment, it's not a permanent "everything is fine" pass, so don't treat it like one π
π SEE ALSO π
Kernel file ./mm/kmemleak.c β the source, the mothership, the main character π
and the whole kmemleak friend group, all iconic, all linked:
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_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)
that's the whole page, bestie, short and slay π§π this came from the ./mm corner of the world, dated October 2026, and yes that's the version, go off, bye π
π₯
π¦ 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