amdgpu_vmid_grab_used(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ amdgpu_vmid_grab_used(9) ✨

okay so bestie, welcome to the Kernel API Manual entry for amdgpu_vmid_grab_used β€” yes that's a whole mouthful, no we're not changing it, it's iconic as is πŸ’…


πŸŽ€ NAME πŸŽ€

amdgpu_vmid_grab_used β€” the "hey, can we just reuse a VMID pretty please" function 🫢


🌸 SYNOPSIS 🌸

int amdgpu_vmid_grab_used (struct amdgpu_vm *vm , struct amdgpu_ring
*ring , struct amdgpu_job *job , struct amdgpu_vmid **id );

literally the whole signature, copied exactly, because we do NOT play with code around here ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vm β€” the vm we're allocating an id for. bestie's home base πŸ’–
  • ring β€” the ring we wanna submit the job to. it's giving "the destination" πŸ”₯
  • job β€” the job that wants to use the VMID. main character energy fr fr πŸ‘‘
  • id β€” the resulting VMID comes out through here. that's the output, slay ⭐

🌈 DESCRIPTION 🌈

Try to reuse a VMID for this submission. that's it, that's the whole vibe β€” it's a try, ngl, not a guarantee, so don't come for me if it doesn't land πŸ™ˆ lowkey the whole point is recycling a VMID instead of grabbing a fresh one for this submission. recycle era β™»οΈβœ¨


πŸ’œ SEE ALSO πŸ’œ

this lil function runs with the whole squad over in the kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c β€” go say hi πŸŽ€

every single one of them, no skips, we don't do that here πŸ’…


ok that's the whole page bestie, go reuse a VMID responsibly 🫢

and that's a wrap!! brought to you by the source tree at ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” catch you in the next manpage, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from