amdgpu_vm_pt_create(9)
π amdgpu_vm_pt_create β from the Kernel API Manual, bestie β¨
Okay so real talk: this little icon is a kernel function that makes a buffer object for a PD/PT. That's the whole vibe. It's giving "allocator core energy" and we're gonna walk through it together, no cap π«Ά
πΈ NAME πΈ
amdgpu_vm_pt_create β create bo for PD/PT π
β¨ SYNOPSIS β¨
int amdgpu_vm_pt_create (struct amdgpu_device *adev , struct amdgpu_vm
*vm , int level , bool immediate , struct amdgpu_bo_vm **vmbo , int32_t
xcp_id );
It returns an int, periodt. π
π¦ ARGUMENTS π¦
Every single param, laid out like a group chat role call:
adevβ theamdgpu_devicepointer. Literally the device itself, the main character πvmβ the requesting vm. She's the one doing the asking πββοΈlevelβ the page table level. Which floor of the page table tower we're on π’immediateβ use a immediate update. Yes, that's how the original words it, and yes I'm keeping it exactly as written πvmboβ pointer to the buffer object pointer. Double pointer moment, obsessed πxcp_idβ GPU partition id. Know which partition you're in, iykyk π₯
π SEE ALSO π
The Kernel file, and then a whole friend group of related functions β every single one, because I would never do you dirty by trimming the list:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c amdgpu_vm_pt_level_shift(9)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_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)
Like, the whole page-table family tree is here and they all ate πβ
Bestie note: this page is from the ./drivers/gpu/drm/amd/amdgpu source, dated October 2026 β so go read the actual code before you ship anything, mwah π
That's the page! Short and sweet, just like this manpage π Go forth and allocate responsibly, queen ππ§ββοΈ
π¦ 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