hl_mmu_hr_alloc_hop(9)
π hl_mmu_hr_alloc_hop(9) β Kernel API Manual π
okay bestie, welcome to the hl_mmu_hr_alloc_hop(9) page from the Kernel API Manual β¨ this one is short and sweet, but every detail still matters, so letβs get into it π«Ά
π NAME π
hl_mmu_hr_alloc_hop β allocate HOP π
πΈ SYNOPSIS πΈ
struct pgt_info * hl_mmu_hr_alloc_hop (struct hl_ctx *ctx , struct
hl_mmu_hr_priv *hr_priv , struct hl_hr_mmu_funcs *hr_func , struct
hl_mmu_properties *mmu_prop );
π«Ά ARGUMENTS π«Ά
ctxβ pointer to the context structure. classic context moment β¨hr_privβ host resident private info structure. πhr_funcβ host resident functions. π§mmu_propβ MMU properties. π§
π« DESCRIPTION π«
On success, this returns the pgt_info structure associated with the allocated HOP. Otherwise? NULL. Thatβs the whole vibe check π no cap, thatβs it.
tiny but important: success gives you thepgt_infostructure tied to the allocated HOP; failure gives youNULL.
π¦ SEE ALSO π¦
Kernel file:
./drivers/accel/habanalabs/common/mmu/mmu.c
Other iconic manual pages to check out π:
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_get_hop_pte_phys_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_get_alloc_next_hop(9)hl_mmu_hr_get_tlb_info(9)
this lil pageβs source/version footer points at ./drivers/accel/habanalabs/com... and the date is October 2026 β manual hl_mmu_hr_alloc_hop(9), signing off π
β¨π
π¦ 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