kmemleak_update_trace(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

kmemleak_update_trace(9) πŸ’…

okay so bestie, this is a page from the Kernel API Manual, and it is lowkey iconic. We're talking about kmemleak_update_trace, and it's giving tiny-but-mighty main character energy. ✨

🌸 NAME 🌸

kmemleak_update_trace β€” update object allocation stack trace πŸŽ€


✨ SYNOPSIS ✨

void __ref kmemleak_update_trace (const void *ptr );

That signature is literally the whole vibe check β€” copy it exactly, iykyk. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • ptr β€” pointer to beginning of the object. That's it, that's the argument. 🫢

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea: kmemleak_update_trace() is your override bestie for the object allocation stack trace. You use it for cases where the actual allocation place is not always useful. No cap, fr fr. πŸ¦‹

The way that it just swoops in and overrides the object allocation stack trace when the actual allocation place is not always useful? Obsessed. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./mm/kmemleak.c is right here, and these little icons are all in the same orbit:


mwah πŸ’– this page comes from ./mm, dated October 2026, and it's literally called kmemleak_update_trace(9) β€” periodt. πŸ‘‘

πŸ“¦ where this page comes from