amdgpu_vm_pt_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” an amdgpu_device pointer, 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 πŸ‘€:


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