amdgpu_bo_create_vm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_bo_create_vm(9) πŸ’–

okay bestie so this is from the Kernel API Manual (section 9, kernel API, iykyk) and it's literally the glow-up guide for making a buffer object that GPUVM can vibe with. no cap, it's short, but every word eats. πŸ¦‹


✨ NAME ✨

amdgpu_bo_create_vm β€” create an &amdgpu_bo_vm buffer object. that's it, that's the whole job, and she does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

int amdgpu_bo_create_vm (struct amdgpu_device *adev , struct
amdgpu_bo_param *bp , struct amdgpu_bo_vm **vmbo_ptr );

three args, one int back, absolutely iconic behavior. πŸŽ€


🫢 ARGUMENTS 🫢

  • adev β€” the amdgpu device object. your main character device, the whole reason we're here.
  • bp β€” parameters to be used for the buffer object. literally the blueprint, the Pinterest board, the vision.
  • vmbo_ptr β€” pointer to the buffer object pointer. yeah, a pointer to a pointer β€” she's double-indirected and she's thriving. 😭

🧚 DESCRIPTION 🧚

Create a BO to be for GPUVM.

that's the whole description fr fr. short, sweet, and lowkey doing the most. πŸ”₯


⭐ RETURN ⭐

0 for success or a negative error code on failure. so if you see a negative number, that's not a vibe check you passed β€” that's a fail, bestie. πŸ’€


🌈 SEE ALSO 🌈

the source lives in the kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c β€” go say hi to her 🫢

and here's the whole friend group, all of them, in order, no one left out because we don't do that here:

like, thirty-six besties. a whole squad. she's connected. πŸ‘‘


ngl, the docs are thin on this one, but the facts are the facts and the facts are slaying. go read the source if you want the lore. πŸ“

and that's the page!! brought to you by ./drivers/gpu/drm/amd/amdgpu πŸ¦‹ β€” October 2026 edition, mwah πŸ’œ βœ¨πŸŽ€

πŸ“¦ where this page comes from