hl_mmu_hr_g...hop_pgt_info(9)
π hl_mmu_hr_get_next_hop_pgt_info β a whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function from the habanalabs mmu corner of the kernel and honestly? she's short, she's sweet, she does exactly one thing. let's get into it π
β¨ NAME β¨
hl_mmu_hr_get_next_hop_pgt_info β grabs you the pgt_info structure for the next HOP π¦
like. that's it. that's her whole job. no cap.
πΈ SYNOPSIS πΈ
struct pgt_info * hl_mmu_hr_get_next_hop_pgt_info (struct hl_ctx *ctx ,
struct hl_hr_mmu_funcs *hr_func , u64 curr_pte );
π§ ARGUMENTS π§
ctxβ pointer to the context structure π your whole context situation, passed on through.hr_funcβ the host resident functions π (hr = host resident, iykyk).curr_pteβ the current PTE value β literally the PTE you're standing on right now, bestie.
π₯ DESCRIPTION π₯
so the whole deal is: she returns the pgt_info structure on success, and otherwise NULL π
that's the entire description. no lore, no hidden chapters. on success β the structure. on fail β NULL. periodt π«Ά
ngl bestie, always check for that NULL β she will hand it to you with a straight face and walk away π
π SEE ALSO π
the kernel file herself lives at ./drivers/accel/habanalabs/common/mmu/mmu.c π go read the source, she's iconic.
and here's the whole friend group, not me listing every single oneβ¦ okay yes I am, because they all matter π
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_alloc_hop(9)hl_mmu_hr_get_alloc_next_hop(9)hl_mmu_hr_get_tlb_info(9)
and that's the page, bestie π mwah π
sign-off time: this lil masterpiece comes from ./drivers/accel/habanalabs/com... and is dated October 2026 β so she's serving future-era kernel wisdom β¨π go forth and hop responsibly π
π¦ 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