unmap_phys_pg_pack(9)
π unmap_phys_pg_pack(9) π
Okay bestie, welcome to the Kernel API Manual β¨ β this is the page for unmap_phys_pg_pack, and no cap, the name literally tells you everything: it unmaps the physical page pack π. That's the whole vibe. It's giving "cleanup era." π§Ή
β¨ SYNOPSIS β¨
void unmap_phys_pg_pack (struct hl_ctx *ctx , u64 vaddr , struct
hl_vm_phys_pg_pack *phys_pg_pack );
So it returns void (nothing back, she's not a gossip π
) and it takes three things. Copy it exactly, don't be creative, this is not the moment for creative liberties π₯.
πΈ ARGUMENTS πΈ
ctxβ pointer to the context structure. Your lil context bestie π«Ά, the one holding the whole situation together.vaddrβ start address of the virtual area to unmap. Like, the beginning of the region we're saying bye to π.phys_pg_packβ the pack of physical pages to unmap. Yes, the whole pack. Iconic, honestly π.
Lowkey important: it's void and there's no return value listed, so don't go looking for a status code, bestie, it's not coming π.
π¦ SEE ALSO π¦
First up, the kernel file this lives in β literally:
Kernel file ./drivers/accel/habanalabs/common/memory.c
And here's the whole friend group π«Ά β every single one, no skipping, I know it's a long list but we don't gatekeep:
dma_map_host_va(9)dma_unmap_host_va(9)dram_pg_pool_do_release(9)free_phys_pg_pack(9)free_device_memory(9)clear_va_list_locked(9)print_va_list_locked(9)merge_va_blocks_locked(9)add_va_block_locked(9)add_va_block(9)is_hint_crossing_range(9)get_va_block(9)hl_get_va_range_type(9)hl_unreserve_va_block(9)init_phys_pg_pack_from_userptr(9)map_phys_pg_pack(9)map_device_va(9)unmap_device_va(9)hl_hw_block_mmap(9)export_dmabuf_from_addr(9)allocate_timestamps_buffers(9)hl_pin_host_memory(9)hl_userptr_delete_list(9)hl_userptr_is_pinned(9)va_range_init(9)va_range_fini(9)vm_ctx_init_with_ranges(9)hl_vm_ctx_fini(9)hl_vm_init(9)hl_vm_fini(9)hl_hw_block_mem_init(9)hl_hw_block_mem_fini(9)
Like, that's the entire VM cinematic universe π. Go read them, iykyk π.
Mwah π β this page came to you from the source tree at ./drivers/accel/habanalabs/common, dated October 2026, manual name Kernel API Manual, and the title unmap_phys_pg_pack(9). Now go unmap that pack, bestie, you're gonna slay π¦β¨
π¦ 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