radeon_vm_map_gart(9)
π radeon_vm_map_gart(9) β a lil' page from the Kernel API Manual
okay so bestie, welcome to radeon_vm_map_gart β¨ this is the little kernel API function that goes and gets you the physical address of a gart page, and honestly? she's short but she delivers. π
πΈ NAME πΈ
radeon_vm_map_gart β get the physical address of a gart page π
β¨ SYNOPSIS β¨
uint64_t radeon_vm_map_gart (struct radeon_device *rdev , uint64_t addr
);
like, she takes two things and hands you back a uint64_t. that's it. that's the whole vibe check. π¦
π«Ά ARGUMENTS π«Ά
rdevβ aradeon_devicepointer, aka your main character. she's the device you're working with, no cap. πaddrβ the unmapped addr. literally the address that hasn't been mapped yet, and you're like "hey bestie what's the physical page behind this?" π
π DESCRIPTION π
So here's the tea: this function looks up the physical address of the page that the pte resolves to β and heads up, this is for cayman+, so if you're on older hardware this isn't your era, iykyk. π
Then it returns the physical address of the page. that's it. she looks it up, she gives it to you. iconic behavior, honestly. π
ngl, the whole function is basically "find the page, return the page" and I respect the commitment to not overcomplicating things. slay. π
π¦ SEE ALSO π¦
Kernel file: ./drivers/gpu/drm/radeon/radeon_vm.c β go read her, she's the source of truth fr fr. π
And the whole vm fam, because they all run together:
radeon_vm_num_pdes(9)radeon_vm_directory_size(9)radeon_vm_manager_init(9)radeon_vm_manager_fini(9)radeon_vm_get_bos(9)radeon_vm_grab_id(9)radeon_vm_flush(9)radeon_vm_fence(9)radeon_vm_bo_find(9)radeon_vm_bo_add(9)radeon_vm_set_pages(9)radeon_vm_clear_bo(9)radeon_vm_bo_set_addr(9)radeon_vm_page_flags(9)radeon_vm_update_page_directory(9)radeon_vm_frag_ptes(9)radeon_vm_update_ptes(9)radeon_vm_fence_pts(9)radeon_vm_bo_update(9)radeon_vm_clear_freed(9)radeon_vm_clear_invalids(9)radeon_vm_bo_rmv(9)radeon_vm_bo_invalidate(9)radeon_vm_init(9)radeon_vm_fini(9)
like, that's the whole group chat. say hi to all of them. π«Άβ¨
π sign-off π
this lil' page lives under ./drivers/gpu/drm/radeon in the Kernel API Manual, dated October 2026, and it's filed as radeon_vm_map_gart(9) β so if you ever need her again she's right there, no cap. bye bestie, go map some gart pages ππβ
π¦ 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