hl_mmap_mem_buf_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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

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