hl_mmu_get_h...te_phys_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 itself
  • virt_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:


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