kfree(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual page for kfree(9) β€” manual name folded in, we're being cute about it πŸ’–. This is the "free the memory you got earlier" girlie, and she's here to help.

✨ NAME ✨

kfree β€” free previously allocated memory. That's it, that's the vibe: give back memory that was allocated earlier. 🫢

πŸ›  SYNOPSIS πŸ› 

void kfree (const void *object );

πŸŽ€ ARGUMENTS πŸŽ€

  • object β€” a pointer returned by kmalloc, kmalloc_nolock, or kmem_cache_alloc. Like, it's the exact pointer energy we're looking for ✨.

πŸ¦‹ DESCRIPTION πŸ¦‹

If object is NULL, no operation is performed. Periodt β€” nothing happens, no cap. πŸ’…

πŸ‘€ SEE ALSO πŸ‘€

These are the besties in the same memory-management group chat β€” go check them out πŸ§šπŸ’œ.


and that's the whole page, bestie! this page's source/version is ./mm and it's dated October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from