amdgpu_vm_pt_level_shift(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay bestie, welcome to the Kernel API Manual page for amdgpu_vm_pt_level_shift πŸ’… β€” and the job is literally in the name: return the addr shift for each level ✨ no cap.


✨ SYNOPSIS ✨

unsigned int amdgpu_vm_pt_level_shift (struct amdgpu_device *adev ,
unsigned int level );

✨ ARGUMENTS ✨

  • adev β€” amdgpu_device pointer 🫢
  • level β€” VMPT level 🌸

✨ RETURN ✨

The number of bits the pfn needs to be right shifted for a level πŸ”₯

Like, that’s the whole tea: you pass in the level, and it gives you back the shift amount. Iconic behavior, honestly πŸ‘‘.


✨ SEE ALSO ✨

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c is the main-character file for this one πŸŽ€, and the whole squad is right here:


That’s the whole page, bestie πŸ’– β€” brought to you by the Kernel API Manual, source/version ./drivers/gpu/drm/amd/amdgpu, dated October 2026, for amdgpu_vm_pt_level_shift(9). Periodt. 🌈🫢

πŸ“¦ where this page comes from