hl_mmu_get_h...te_phys_addr(9)
π hl_mmu_get_hop_pte_phys_addr β NAME
okay so bestie, welcome to the Kernel API Manual β¨ this one's called hl_mmu_get_hop_pte_phys_addr, and it's literally the function that extracts the PTE address from a HOP π iykyk
πΈ SYNOPSIS
u64 hl_mmu_get_hop_pte_phys_addr (struct hl_ctx *ctx , struct
hl_mmu_properties *mmu_prop , u8 hop_idx , u64 hop_addr , u64 virt_addr
);
she takes five args and returns a u64, no cap π
π¦ ARGUMENTS
ctxβ pointer to the context structure to initialize π«Άmmu_propβ the MMU properties, mmkay?hop_idxβ the HOP index, like which hop we're on πhop_addrβ the HOP address itselfvirt_addrβ the virtual address you're translating for, that's the whole vibe β¨
π DESCRIPTION
she returns the matching PTE value on success π otherwise you get U64_MAX π (that's the "nope" value, so watch for it)
π SEE ALSO
the kernel file ./drivers/accel/habanalabs/common/mmu/mmu.c is where she lives π and here's the whole friend group, fr fr:
hl_mmu_get_funcs(9)hl_mmu_init(9)hl_mmu_fini(9)hl_mmu_ctx_init(9)hl_mmu_scramble_addr(9)hl_mmu_descramble_addr(9)hl_mmu_hr_pool_destroy(9)hl_mmu_hr_init(9)hl_mmu_hr_fini(9)hl_mmu_hr_free_hop_remove_pgt(9)hl_mmu_hr_pte_phys_to_virt(9)hl_mmu_hr_write_pte(9)hl_mmu_hr_clear_pte(9)hl_mmu_hr_put_pte(9)hl_mmu_hr_get_pte(9)hl_mmu_hr_get_next_hop_pgt_info(9)hl_mmu_hr_alloc_hop(9)hl_mmu_hr_get_alloc_next_hop(9)hl_mmu_hr_get_tlb_info(9)
that's the whole page, bestie!! π§ source/version is ./drivers/accel/habanalabs/com... and the date on this one is October 2026 β go forth and translate those PTEs, ily πβ
π¦ 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