radeon_vm_grab_id(9)
π radeon_vm_grab_id(9) β from the Kernel API Manual, bestie β¨
okay so picture this: it's a kernel API manual page, section 9, and the star of the show is radeon_vm_grab_id. she's a function. she grabs IDs. she's iconic. let's get into it π
β¨ NAME β¨
radeon_vm_grab_id β grab the next free VMID, no cap π«Ά
πΈ SYNOPSIS πΈ
struct radeon_fence * radeon_vm_grab_id (struct radeon_device *rdev ,
struct radeon_vm *vm , int ring );
that's the whole signature, copy it exactly please, she's precise π
π¦ ARGUMENTS π¦
rdevβ aradeon_devicepointer, aka the whole GPU situation πvmβ the vm we're allocating an id for, main character energy frringβ the ring we want to submit the job to, that's the vibe check π«
π₯ DESCRIPTION π₯
so like, this function allocates an id for the vm β and this is cayman+ only, iykyk π
. it returns the fence we need to sync to (if any). yes, if any, that's important, sometimes there just isn't one, and that's fine π
β οΈ bestie listen to me. Global and local mutex must be locked! both of them. not one. not "eh probably". both. this is not a drill π
π SEE ALSO π
the kernel file lives at ./drivers/gpu/drm/radeon/radeon_vm.c and honestly she has a whole friend group, here's the full squad, go say hi π«Ά:
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_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_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)
okay that's the whole page, ily, go lock those mutexes and slay π β¨
this lil cutie comes to you from ./drivers/gpu/drm/radeon, dated October 2026 β periodt, that's the source and the date, mwah ππ
π¦ 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