hl_mmap_mem_buf_get(9)
π NAME π
okay so bestie, this is hl_mmap_mem_buf_get(9) from the Kernel API Manual β it increases the buffer refcount and returns a pointer to the buffer descriptor. no cap, that's the whole vibe. π
β¨ SYNOPSIS β¨
struct hl_mmap_mem_buf * hl_mmap_mem_buf_get (struct hl_mem_mgr *mmg , u64 handle );
π ARGUMENTS π
mmgβ parent unified memory manager. literally the parent unified memory manager, okay? πhandleβ requested buffer handle. the one and only requested buffer handle, periodt. π
π¦ DESCRIPTION π¦
So the vibe check is: find the buffer in the store π΅οΈββοΈ, return a pointer to its descriptor, and increase the buffer refcount. if it's not found β return NULL. that's it, that's the function. πβ¨
π SEE ALSO π
Kernel file: ./drivers/accel/habanalabs/common/memory_mgr.c
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_fini(9)hl_mem_mgr_idr_destroy(9)
go read these next, bestie, they're all connected π₯π«Ά
catch u later β source/version ./drivers/accel/habanalabs/common, date October 2026, from the Kernel API Manual πβ¨
π¦ 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