unmap_phys_pg_pack(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… unmap_phys_pg_pack(9) πŸ’…

Okay bestie, welcome to the Kernel API Manual ✨ β€” this is the page for unmap_phys_pg_pack, and no cap, the name literally tells you everything: it unmaps the physical page pack πŸŽ€. That's the whole vibe. It's giving "cleanup era." 🧹


✨ SYNOPSIS ✨

void unmap_phys_pg_pack (struct hl_ctx *ctx , u64 vaddr , struct
hl_vm_phys_pg_pack *phys_pg_pack );

So it returns void (nothing back, she's not a gossip πŸ’…) and it takes three things. Copy it exactly, don't be creative, this is not the moment for creative liberties πŸ”₯.


🌸 ARGUMENTS 🌸

  • ctx β€” pointer to the context structure. Your lil context bestie 🫢, the one holding the whole situation together.
  • vaddr β€” start address of the virtual area to unmap. Like, the beginning of the region we're saying bye to πŸ‘‹.
  • phys_pg_pack β€” the pack of physical pages to unmap. Yes, the whole pack. Iconic, honestly πŸ‘‘.
Lowkey important: it's void and there's no return value listed, so don't go looking for a status code, bestie, it's not coming 😭.

πŸ¦‹ SEE ALSO πŸ¦‹

First up, the kernel file this lives in β€” literally:

Kernel file ./drivers/accel/habanalabs/common/memory.c

And here's the whole friend group 🫢 β€” every single one, no skipping, I know it's a long list but we don't gatekeep:

Like, that's the entire VM cinematic universe 🌈. Go read them, iykyk πŸ’œ.


Mwah πŸ’‹ β€” this page came to you from the source tree at ./drivers/accel/habanalabs/common, dated October 2026, manual name Kernel API Manual, and the title unmap_phys_pg_pack(9). Now go unmap that pack, bestie, you're gonna slay πŸ¦‹βœ¨

πŸ“¦ where this page comes from