clear_va_list_locked(9)
β¨ clear_va_list_locked β free virtual addresses list β¨
okay bestie, welcome to the clear_va_list_locked page π
this is a section 9 kernel API manual page (yes, the Kernel API Manual, we're in the big leagues now π), and it's genuinely so straightforward you're gonna wonder why you were nervous.
π¦ NAME π¦
clear_va_list_locked β literally just frees a virtual addresses list. that's the whole vibe. ngl it does what it says on the tin π
πΈ SYNOPSIS πΈ
void clear_va_list_locked (struct hl_device *hdev , struct list_head
*va_list );
returns void, so no "did it work??" anxiety, she just does it and leaves β¨
π ARGUMENTS π
hdevβ the habanalabs device structure. the main character device struct π«Άva_listβ list of virtual addresses to free. this is the list she's about to clear out, lowkey her whole reason for existing π
π DESCRIPTION π
so here's the tea, bestie β this function does exactly one thing:
- Iterate over the list and free each virtual addresses block.
that's it. that's the function. she ate and left no crumbs π₯
β οΈ okay important caveat, do NOT skip this one: this function should be called only when theva_listlock is taken. like, the name literally has_lockedin it, the lock is not optional, it's giving very much "read the room" energy π call it unlocked and that's undefined-behaviour territory, fr fr.
π SEE ALSO π
the whole friend group π«Ά β Kernel file ./drivers/accel/habanalabs/common/memory.c, plus:
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), 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), unmap_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)
okay that's the page!! sourced from ./drivers/accel/habanalabs/common, dated October 2026, clear_va_list_locked(9) β ily, go take that lock before you call her π§ππ
π¦ 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