radeon_vm_u...ge_directory(9)
π radeon_vm_update_page_directory(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's from the <./drivers/gpu/drm/radeon> girlies and it's literally the page-directory glow-up function, iykyk π¦
πΈ NAME πΈ
radeon_vm_update_page_directory β make sure that page directory is valid π
no cap, that's the whole job
β¨ SYNOPSIS β¨
int radeon_vm_update_page_directory (struct radeon_device *rdev , struct
radeon_vm *vm );
like, it takes two things and returns an int, periodt π
π«Ά ARGUMENTS π«Ά
rdevβ aradeon_devicepointer π your device, the main charactervmβ the requested vm π§ the virtual memory vibes you're asking about
π« DESCRIPTION π«
So what it does: it allocates new page tables if necessary and then updates the page directory β and heads up, that's (cayman+) only, so older chips can sit this one out π
It returns 0 for success and an error for failure, fr fr π no in-between.
β οΈ ok this is the important part: Global and local mutex must be locked! both of them. locked. before you call this. not a suggestion, bestie, it's giving "do it or things go very bad" ππ
π SEE ALSO π
Kernel file ./drivers/gpu/drm/radeon/radeon_vm.c β go read it, it's iconic π
and then the whole friend group, literally the entire squad π«Ά:
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_map_gart(9)radeon_vm_page_flags(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)
and that's the whole page, bestie π this little cutie lives in ./drivers/gpu/drm/radeon, it's dated October 2026, and the header says radeon_vm_u...ge_directory(9) β yes the title's truncated, that's just how it ate ππ mwah, go lock those mutexes πβ¨
π¦ 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