hl_mmu_hr_write_pte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hl_mmu_hr_write_pte β€” a whole section 9 moment

Okay bestie, welcome to the hl_mmu_hr_write_pte page from the Kernel API Manual β€” this is the one that literally just writes an HR PTE. That's it. That's the whole gig. No cap. πŸŽ€


✨ NAME ✨

hl_mmu_hr_write_pte β€” write HR PTE πŸ–ŠοΈβœ¨


🌸 SYNOPSIS 🌸

void hl_mmu_hr_write_pte (struct hl_ctx *ctx , struct pgt_info *pgt_info
, u64 phys_pte_addr , u64 val , u32 hop_table_size );

Notice it returns void β€” she gives nothing back, she's just here to do the thing. Main character energy fr fr. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

The way this function has five arguments and every single one matters, iykyk:

  • ctx β€” pointer to the context structure 🫢 your whole vibe/state, basically.
  • pgt_info β€” HOP's page table info structure πŸ“‹ the receipts for the page table.
  • phys_pte_addr β€” phys PTE address πŸ“ the physical spot where the PTE lives. Not virtual. Phys. Do not come for her with a virtual address, she will not know her.
  • val β€” raw PTE data πŸ§ƒ the actual bytes getting written, unprocessed, straight-up raw.
  • hop_table_size β€” HOP table size πŸ“ how big the HOP table is. She needs to know.

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file this lives in, for when you wanna go read the source like the little researcher you are:

./drivers/accel/habanalabs/common/mmu/mmu.c

And the whole friend group β€” the MMU/HOP squad 🧚✨:


Okay that's the whole page bestie, go write your PTE πŸ’–

Sign-off szn: this iconic lil page comes from ./drivers/accel/habanalabs/com... (the path got a lil truncated, she's mysterious like that 🌈), dated October 2026, and yes β€” it's hl_mmu_hr_write_pte(9) all the way at the bottom too. Periodt. πŸ’…β­

πŸ“¦ where this page comes from