radeon_vm_clear_freed(9)
π radeon_vm_clear_freed(9) β like, the Kernel API Manual page, bestie π
okay so bestie, welcome to the glow-up of radeon_vm_clear_freed(9), straight out of the Kernel API Manual β¨ this one's about tidying up your page tables so freed BOs don't just vibe there forever being messy. it's giving "clean your room before company comes over" energy, and honestly? iconic.
β¨ NAME β¨
radeon_vm_clear_freed β clear freed BOs in the PT π§Ήπ
like, exactly what it says on the tin, no cap.
πΈ SYNOPSIS πΈ
int radeon_vm_clear_freed (struct radeon_device *rdev , struct radeon_vm
*vm );
that's the whole signature, mwah π
π¦ ARGUMENTS π¦
rdevβ aradeon_devicepointer, aka your main character device struct πvmβ the requested vm, the one you're doing the clearing for π«Ά
π DESCRIPTION π
okay so the whole point: make sure all freed BOs are cleared in the PT. that's it, that's the job. returns 0 for success β (yes, zero is the good number here, don't let anyone tell you otherwise).
β οΈ but listen β PTs have to be reserved and mutex must be locked! i'm so serious, bestie π this is a real caveat, not a vibe. get your locking situation sorted before you call this, or it's gonna be a bad time. π₯
π§ SEE ALSO π§
like the whole friend group of VM functions, iykyk π
Kernel file ./drivers/gpu/drm/radeon/radeon_vm.c
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_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_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 lil beauty lives in ./drivers/gpu/drm/radeon, it's dated October 2026, and it goes by radeon_vm_clear_freed(9) β periodt. π
β¨ go clear those freed BOs, you absolute legend π«Άπ
π¦ 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