amdgpu_vm_bo_replace_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_vm_bo_replace_map(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the amdgpu_vm_bo_replace_map(9) page πŸ’… this is straight out of the Kernel API Manual and it's genuinely such a mood. grab a strawberry πŸ“ and let's get into it.


✨ NAME ✨

amdgpu_vm_bo_replace_map β€” map a BO inside a VM, but like, replacing the mappings that are already chilling there πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int amdgpu_vm_bo_replace_map (struct amdgpu_device *adev , struct
amdgpu_bo_va *bo_va , uint64_t saddr , uint64_t offset , uint64_t size ,
uint32_t flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • adev β€” amdgpu_device pointer, i.e. the whole device situation πŸ–₯️
  • bo_va β€” the bo_va that's gonna store the address, lowkey the main character here
  • saddr β€” where to map the BO πŸ“
  • offset β€” the offset you're requesting in the BO
  • size β€” BO size in bytes, fr fr
  • flags β€” attributes of the pages (read/write/valid/etc.) 🏷️

🌸 DESCRIPTION 🌸

so what it does: it adds a mapping of the BO at the specified addr into the VM ✨ and because it's an icon, it replaces the existing mappings while it's at it. like, out with the old, in with the new, no cap.

⚠️ bestie listen β€” the object has to be reserved and unreserved outside! that's not optional, that's the vibe check. don't come for this function without doing that first 🫢

⭐ RETURN ⭐

0 for success, error for failure. that's it, that's the whole mood πŸ˜­πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c β€” and honestly the whole extended universe, because this page has so many friends πŸ§šβ€β™€οΈ:

like I said. so many friends. ate πŸ’…πŸ”₯


and that's the page bestie!! go forth and replace those mappings βœ¨πŸ¦‹

kisses from the ./drivers/gpu/drm/amd/amdgpu crew β€” this one's dated October 2026, so yes she's from the future and yes she's iconic πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from