amdgpu_vmid_grab_used(9)
β¨ 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 π
amdgpu_pasid_alloc(9)amdgpu_pasid_free(9)amdgpu_pasid_clear_owner(9)amdgpu_pasid_lock(9)amdgpu_pasid_unlock(9)amdgpu_pasid_get_fpriv_locked(9)amdgpu_pasid_free_delayed(9)amdgpu_vmid_had_gpu_reset(9)amdgpu_vmid_grab_idle(9)amdgpu_vmid_grab_reserved(9)amdgpu_vmid_grab(9)amdgpu_vmid_reset(9)amdgpu_vmid_reset_all(9)amdgpu_vmid_mgr_init(9)amdgpu_vmid_mgr_fini(9)amdgpu_pasid_mgr_cleanup(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms