hl_mmu_hr_g...hop_pgt_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ


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