hl_mem_mgr_fini(9)
π hl_mem_mgr_fini β kernel API manual, bestie edition π
okay so we're in the hl_mem_mgr_fini(9) page, part of the Kernel API Manual, and honestly? this one is short and sweet and we love that for us. let's get into it β¨
πΈ NAME πΈ
hl_mem_mgr_fini β release unified memory manager
like, she's done, she's logging off, she's releasing the whole unified memory manager. periodt π
π SYNOPSIS π
void hl_mem_mgr_fini (struct hl_mem_mgr *mmg , struct
hl_mem_mgr_fini_stats *stats );
no return value, she gives you nothing back and that's the vibe π¦
π ARGUMENTS π
mmgβ the parent unified memory manager. the mom of the whole situation, the main character we're shutting down π«Άstatsβ if this one's non-NULL, it will return some counters for handles that could not be removed. so if some handles just refused to leave the party π, this is where you find out how many. if it'sNULL, no counters for you, and that's fine too.
β DESCRIPTION β
Release the unified memory manager. that's it, that's the whole thing, she's iconic for keeping it brief π
Big important note bestie: this shall be called from an interrupt context. not a regular context, an interrupt context. don't get cute about it ππ₯
π SEE ALSO π
- Kernel file
./drivers/accel/habanalabs/common/memory_mgr.cβ go read the source, iykyk π hl_mmap_mem_buf_get(9)hl_mmap_mem_buf_destroy(9)hl_mmap_mem_buf_release(9)hl_mmap_mem_buf_remove_idr_locked(9)hl_mmap_mem_buf_put(9)hl_mmap_mem_buf_put_handle(9)hl_mmap_mem_buf_alloc(9)hl_mmap_mem_buf_vm_close(9)hl_mem_mgr_mmap(9)hl_mem_mgr_init(9)hl_mem_mgr_idr_destroy(9)
the whole friend group fr fr, go say hi πΈ
and that's the page, bestie!! π§ this one lives in ./drivers/accel/habanalabs/common and it's dated October 2026, so likeβ¦ future vibes, we love a timestamp from the future ππ ok bye, go free your memory manager 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