kfree(9)
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 bykmalloc,kmalloc_nolock, orkmem_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 π
- Kernel file
./mm/slub.cenumslab_flags(9) kmem_cache_alloc_node(9)kmem_cache_free(9)ksize(9)kvfree(9)kvfree_atomic(9)kvfree_sensitive(9)kmem_cache_alloc_bulk(9)
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
- 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