amdgpu_vm_pt_entries_mask(9)
π amdgpu_vm_pt_entries_mask(9)
okay so bestie, we're in the Kernel API Manual today and this little function is genuinely iconic. It's amdgpu_vm_pt_entries_mask, and no cap, it's the β¨maskβ¨ to get the entry number of a PD/PT. that's the whole vibe. periodt.
π NAME π
amdgpu_vm_pt_entries_mask β the mask to get the entry number of a PD/PT π«Ά
β¨ SYNOPSIS β¨
uint32_t amdgpu_vm_pt_entries_mask (struct amdgpu_device *adev ,
unsigned int level );
like, that's it. two args, one uint32_t coming back at you. slay.
πΈ ARGUMENTS πΈ
adevβ anamdgpu_devicepointer, i.e. your whole GPU device situation. main character energy fr fr. π₯levelβ the VMPT level. yes queen, tell her which level you're on. π
π RETURN π
The mask you use to extract the entry number of a PD/PT from an address. that's the tea β one mask, one address, entry number extracted. it's giving "find your girl in the crowd". πβ¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.cβ the actual source, go read it iykyk π amdgpu_vm_pt_level_shift(9)amdgpu_vm_pt_num_entries(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)
the whole friend group, honestly. go say hi to all of them. π«Άπ
and that's the page, bestie!! πβ cute little sign-off time: this one comes to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's filed under amdgpu_vm_pt_entries_mask(9). mwah π stay masked (the entry-number way, not the other way, we're post-2020 here) ππ
π¦ 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