amdgpu_vm_cpu_map_table(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 amdgpu_vm_cpu_map_table β€” a little intro πŸ’…

okay so welcome to the Kernel API Manual, bestie, this one is short and sweet and honestly kind of a vibe. it's giving "tiny helper function that makes sure everything's mapped before anybody touches it" ✨


✨ NAME ✨

amdgpu_vm_cpu_map_table β€” the function whose whole job is to make sure new PDs/PTs are kmapped πŸ’–

like. no cap. that's the mission statement. new page directories and page tables? they get kmapped. periodt.

πŸŽ€ SYNOPSIS πŸŽ€

int amdgpu_vm_cpu_map_table (struct amdgpu_bo_vm *table );

it hands back an int, so you already know to check your return value, iykyk 😭

πŸ¦‹ ARGUMENTS πŸ¦‹

  • table β€” the newly allocated or validated PD/PT 🫢 that's it. that's the whole parameter list. it's a struct amdgpu_bo_vm * and it's freshly allocated or freshly validated, depending on which way the wind's blowing 🌈

⭐ SEE ALSO ⭐

the source lives right here, go look, it's literally one file:

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c

and it's got friends in the same little friend group πŸ‘‘:

go read those too, they're iconic, they're the main character energy of this file fr fr πŸ’€


ok that's the whole page bestie, it was a short one, go forth and map responsibly 🧚

and finally, the little sign-off 🌸: this cutie lives in ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and the whole thing is filed under the Kernel API Manual and section 9. mwah πŸ’‹

πŸ“¦ where this page comes from