amdgpu_pasi...fpriv_locked(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual page for amdgpu_pasi...fpriv_locked(9) β and the function at the center of it all is amdgpu_pasid_get_fpriv_locked, which is literally here to get the DRM owner of a PASID. that's the whole assignment. iconic. β¨
π¦ SYNOPSIS π¦
struct amdgpu_fpriv * amdgpu_pasid_get_fpriv_locked (u32 pasid );
πΈ ARGUMENTS πΈ
pasidβ the PASID to resolve. that's it, that's the argument, and it's doing its little main-character job π
π DESCRIPTION π
okay so listen closely, because this part is important: the caller must hold the PASID XArray lock. no cap, that's a requirement, not a suggestion. π
π¨ bestie, the returned pointer is only valid while the PASID lock remains held and must not be retained after calling amdgpu_pasid_unlock. like, do not keep it around after unlock. that's the rule. periodt. π
β RETURN β
it returns a pointer to the owning DRM file private, or NULL if the PASID has no current owner. simple, clean, very demure. π«Ά
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_alloc(9)amdgpu_pasid_free(9)amdgpu_pasid_clear_owner(9)amdgpu_pasid_lock(9)amdgpu_pasid_unlock(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_used(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)
and that's the page, bestie π cute lil sign-off time: this one comes from the source/version path ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and its footer title is still amdgpu_pasi...fpriv_locked(9). 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