amdgpu_vm_pt_level_shift(9)
β¨ 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_devicepointer π«Ά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:
amdgpu_vm_pt_num_entries(9)amdgpu_vm_pt_entries_mask(9)amdgpu_vm_pt_size(9)amdgpu_vm_pt_parent(9)amdgpu_vm_pt_start(9)amdgpu_vm_pt_descendant(9)amdgpu_vm_pt_sibling(9)amdgpu_vm_pt_ancestor(9)amdgpu_vm_pt_next(9)amdgpu_vm_pt_first_dfs(9)amdgpu_vm_pt_continue_dfs(9)amdgpu_vm_pt_next_dfs(9)amdgpu_vm_pt_clear(9)amdgpu_vm_pt_create(9)amdgpu_vm_pt_alloc(9)amdgpu_vm_pt_free(9)amdgpu_vm_pt_free_list(9)amdgpu_vm_pt_add_list(9)amdgpu_vm_pt_free_root(9)amdgpu_vm_pde_update(9)amdgpu_vm_pte_update_noretry_flags(9)amdgpu_vm_pte_fragment(9)amdgpu_vm_ptes_update(9)amdgpu_vm_pt_map_tables(9)
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
- 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