amdgpu_vm_update_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

amdgpu_vm_update_stats(9)

okay bestie, welcome to the Kernel API Manual page for amdgpu_vm_update_stats(9) β€” yes, the title and the manual name are both right here at the top, and this helper is literally here to update the normal memory stat. πŸŽ€


✨ NAME ✨

amdgpu_vm_update_stats - helper to update normal memory stat

🌸 SYNOPSIS 🌸

void amdgpu_vm_update_stats (struct amdgpu_vm_bo_base *base , struct
       ttm_resource *res , int sign );

πŸŽ€ ARGUMENTS πŸŽ€

  • base β€” base structure for tracking BO usage in a VM
  • res β€” the ttm_resource to use for the purpose of accounting, may or may not be bo->tbo.resource
  • sign β€” if we should add (+1) or subtract (-1) from the stat

πŸ¦‹ DESCRIPTION πŸ¦‹

Updates the basic memory stat when bo is added/deleted/moved. That's the whole gig β€” no extra lore, no hidden side quest. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯


cute sign-off: source/version ./drivers/gpu/drm/amd/amdgpu, dated October 2026 πŸ’œ

πŸ“¦ where this page comes from