amdgpu_vm_bo_update_shared(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_vm_bo_update_shared(9) β€” Kernel API Manual, section 9, bestie

okay so you found yourself in the AMDGPU VM corner of the kernel, huh? this one's a little callback with a big job. it lives in the <pink>Kernel API Manual</pink>, section 9, and it's about to make your buffer object's whole social status update. let's get into it 🫢


✨ NAME ✨

amdgpu_vm_bo_update_shared β€” the callback that fires when a bo gets shared or unshared πŸ’«


🌸 SYNOPSIS 🌸

void amdgpu_vm_bo_update_shared (struct amdgpu_bo *bo );

that's it. one arg. no return value. icon behavior, honestly ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • bo β€” the amdgpu buffer object in question 🧚 the main character of this whole function, fr fr

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: this is the callback that runs when a bo gets shared or unshared, and it updates the per-VM stats for all the VMs β€” but only if needed β€” flipping them from private to shared, or the other way around. lowkey just a little bookkeeping slay, but the "if needed" part is doing a lot of the work so nobody's out here doing pointless updates πŸ’…

think of it as the group-chat notification when someone's relationship status changes from "private" to "shared." the VMs need to know. and this function is the one telling them πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c and honestly the entire extended cinematic universe of GPUVM friends β€” every single one of them, no skips, no cap:

like I said. the whole friend group πŸ˜­πŸ’œ


anyway bestie, that's the page. documented out of ./drivers/gpu/drm/amd/amdgpu, dated October 2026, under the name amdgpu_vm_bo_update_shared(9) β€” go forth and update those shared stats, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from