amdgpu_vm_pt_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_vm_pt_create β€” from the Kernel API Manual, bestie ✨

Okay so real talk: this little icon is a kernel function that makes a buffer object for a PD/PT. That's the whole vibe. It's giving "allocator core energy" and we're gonna walk through it together, no cap 🫢


🌸 NAME 🌸

amdgpu_vm_pt_create β€” create bo for PD/PT πŸ’–


✨ SYNOPSIS ✨

int amdgpu_vm_pt_create (struct amdgpu_device *adev , struct amdgpu_vm
*vm , int level , bool immediate , struct amdgpu_bo_vm **vmbo , int32_t
xcp_id );

It returns an int, periodt. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

Every single param, laid out like a group chat role call:

  • adev β€” the amdgpu_device pointer. Literally the device itself, the main character πŸ‘‘
  • vm β€” the requesting vm. She's the one doing the asking πŸ™‹β€β™€οΈ
  • level β€” the page table level. Which floor of the page table tower we're on 🏒
  • immediate β€” use a immediate update. Yes, that's how the original words it, and yes I'm keeping it exactly as written 😭
  • vmbo β€” pointer to the buffer object pointer. Double pointer moment, obsessed πŸ’…
  • xcp_id β€” GPU partition id. Know which partition you're in, iykyk πŸ”₯

πŸŽ€ SEE ALSO πŸŽ€

The Kernel file, and then a whole friend group of related functions β€” every single one, because I would never do you dirty by trimming the list:

Like, the whole page-table family tree is here and they all ate 🌈⭐


Bestie note: this page is from the ./drivers/gpu/drm/amd/amdgpu source, dated October 2026 β€” so go read the actual code before you ship anything, mwah πŸ’‹

That's the page! Short and sweet, just like this manpage πŸ“ Go forth and allocate responsibly, queen πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from