amdgpu_vm_pt_size(9)
β¨ amdgpu_vm_pt_size(9) β¨
okay so bestie, welcome to the Kernel API Manual π
β this is the page for amdgpu_vm_pt_size(9) and it's literally so straightforward you're gonna slay it in like thirty seconds, no cap.
π NAME π
amdgpu_vm_pt_size β returns the size of the page table in bytes π
π¦ SYNOPSIS π¦
unsigned int amdgpu_vm_pt_size (struct amdgpu_device *adev , unsigned
int level );
like, that's it. that's the whole vibe. two args, one unsigned int back. iconic π«Ά
πΈ ARGUMENTS πΈ
adevβ anamdgpu_devicepointer, aka your little handle to the GPU device, the main character of the whole driver ngl π₯οΈlevelβ the VMPT level, fr fr. which rung of the page-table ladder we're talking about π
π RETURN π
it hands you back the size of the BO for a page directory or page table, in bytes πβ¨ that's the whole answer, no β¨mysteryβ¨, no strings attached.
π₯ SEE ALSO π₯
first up, the source files/functions in the kernel tree, bestie:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
and then the whole friend group π«Ά β every single one of these, don't skip any i'm watching π:
amdgpu_vm_pt_level_shift(9)amdgpu_vm_pt_num_entries(9)amdgpu_vm_pt_entries_mask(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)
lowkey a whole page-table cinematic universe going on here. read them all, iykyk π
and that's the tea β β this page lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's filed under amdgpu_vm_pt_size(9). go off, bestie, you ate π
πβ
π¦ 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