amdgpu_ib_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_ib_get(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this one's a lil kernel function from the AMDGPU corner of the world, and it's literally about asking for an IB (an Indirect Buffer, iykyk). no cap, it's short and sweet. πŸ¦‹


✨ NAME ✨

amdgpu_ib_get β€” request an IB (Indirect Buffer)


🌸 SYNOPSIS 🌸

int amdgpu_ib_get (struct amdgpu_device *adev , struct amdgpu_vm *vm ,
unsigned int size , enum amdgpu_ib_pool_type pool_type , struct
amdgpu_ib *ib );

πŸŽ€ ARGUMENTS πŸŽ€

  • adev β€” an amdgpu_device pointer. the device, the main character fr πŸ’…
  • vm β€” an amdgpu_vm pointer. virtual memory said hi πŸ‘‹
  • size β€” the requested IB size. you tell it how big, it does the rest ✨
  • pool_type β€” the IB pool type, and the options are delayed, immediate, and direct. pick your vibe 🫢
  • ib β€” the IB object that gets returned to you. that's your prize 🎁

πŸ”₯ DESCRIPTION πŸ”₯

So basically you're requesting an IB β€” and this works on all asics, no exceptions, periodt. IBs get allocated using the suballocator (yes, that's the actual mechanism, not me being cute). 🧚

It returns 0 on success, and an error on failure. that's the whole vibe check: zero = slay, error = 😭 πŸ’€

ngl, do check that return value β€” an error means you don't have your IB, and pretending otherwise is not the move πŸ™ˆ

⭐ SEE ALSO ⭐

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c, plus these iconic neighbors:


and that's the page, bestie πŸ’œ this lil beauty comes from ./drivers/gpu/drm/amd/amdgpu (you know the source/version), dated October 2026 β€” so go forth, get your IB, and stan the suballocator for me πŸŒˆπŸ‘‘πŸ“

πŸ“¦ where this page comes from