hl_mmap_mem_buf_put_handle(9)
πΈ NAME πΈ
hl_mmap_mem_buf_put_handle(9) β from the Kernel API Manual, bestie β is the function that decreases the reference to the buffer with the given handle. Thatβs the whole vibe: drop a ref, and if it was the last one, the buffer gets released. π
β¨ SYNOPSIS β¨
int hl_mmap_mem_buf_put_handle (struct hl_mem_mgr *mmg , u64 handle );
π ARGUMENTS π
mmgβ the parent unified memory manager πhandleβ the requested buffer handle π―
π DESCRIPTION π
Okay so hereβs the tea π: this function decreases the reference to the buffer, and releases it if it was the last one. Reference-count cleanup, but make it cute.
π¨ Real talk, bestie: this shall not be called from an interrupt context. Like, do not even try it. Periodt. π
If handle was not found, it returns -EINVAL. Otherwise, it returns the put outcome β either 0 or 1. No cap. β¨
π¦ SEE ALSO π¦
Kernel file: ./drivers/accel/habanalabs/common/memory_mgr.c πΎ
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_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)
mwah π this icon lives in ./drivers/accel/habanalabs/common, dated October 2026 β slay and goodbye π«Άπ
π¦ 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