is_hint_crossing_range(9)
π is_hint_crossing_range β Kernel API Manual β¨
okay so bestie, welcome to the is_hint_crossing_range(9) page π«Ά this is one of those kernel API manual pages (yes, the whole manual is literally called Kernel API Manual, we stay fancy) and it's honestly a little legend: it answers the question "hey, is this hint address wandering into reserved territory?" π
πΈ NAME πΈ
is_hint_crossing_range β check if hint address crossing specified reserved.
like, the whole vibe check of the function: does the hint address cross into the reserved range or not π
β¨ SYNOPSIS β¨
bool is_hint_crossing_range (enum hl_va_range_type range_type , u64
start_addr , u32 size , struct asic_fixed_properties *prop );
it returns a bool, bestie β yes-or-no, no in-between, no "it's complicated" π
π¦ ARGUMENTS π¦
range_typeβ the virtual space range type. like, which flavour of range are we even talking about πstart_addrβ the start virtual address. the place we start looking, our main character address β¨sizeβ the block size. how much of a chunk we're dealing with πpropβ the asic properties structure, and that's the one we pull the reserved ranges from π
ngl, prop is doing all the heavy lifting here β no props, no reserved ranges, no answer. respect the struct π
π SEE ALSO π
the kernel file this lives in is ./drivers/accel/habanalabs/common/memory.c β go say hi, it's iconic π
and here's the whole friend group, not one of them left out, fr fr:
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)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 whole page, no cap π this one comes from ./drivers/accel/habanalabs/common, dated October 2026 β so mark your calendars bestie, the habanalabs girlies ate and left zero crumbs πβ¨π
π¦ 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