hl_mmu_get_funcs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hl_mmu_get_funcs(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this is page hl_mmu_get_funcs(9) and it's literally the cutest little lookup ever, no cap 🫢


🌸 NAME 🌸

hl_mmu_get_funcs β€” get MMU functions structure πŸ’…

like... that's it. that's the whole job. it gets you the funcs. iconic.


✨ SYNOPSIS ✨

struct hl_mmu_funcs * hl_mmu_get_funcs (struct hl_device *hdev , int
pgt_residency , bool is_dram_addr );

ngl the signature is a whole mood β€” three args, one pointer out, we love a clean return πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • hdev β€” habanalabs device structure. yep, the device itself, main character energy πŸ‘‘
  • pgt_residency β€” page table residency. it's an int, it's about residency, that's the vibe 🌈
  • is_dram_addr β€” true if we need HMMU functions. emphasis on if we need HMMU functions β€” that's the whole check, iykyk πŸ’œ

🌼 DESCRIPTION 🌼

return appropriate MMU functions structure πŸ’«

that's the assignment and she ate fr fr β€” you hand it the args, it hands back the struct hl_mmu_funcs * that fits. periodt.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/accel/habanalabs/common/mmu/mmu.c β€” yes bestie, that's where she lives πŸ“

and the whole friend group, literally the entire group chat of related pages:

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_alloc_hop(9), hl_mmu_hr_get_alloc_next_hop(9), hl_mmu_hr_get_tlb_info(9) πŸ’–


lowkey a reminder that upstream says ./drivers/accel/habanalabs/com... for the source path β€” I'm not fixing that, I'm just reporting it exactly as given, bestie πŸ™ˆ

and that's the page !! πŸ’… mwah 🫢

β€” cute sign-off time: this lil gem comes from ./drivers/accel/habanalabs/com..., dated October 2026, and it's page hl_mmu_get_funcs(9) of the Kernel API Manual πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from