amdgpu_vram_mgr_alloc_sgt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– amdgpu_vram_mgr_alloc_sgt(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is amdgpu_vram_mgr_alloc_sgt(9) and it's lowkey the moment where a chunk of your VRAM allocation gets its own little scatter-gather table. very main character of it. ✨


🌸 NAME 🌸

amdgpu_vram_mgr_alloc_sgt β€” allocate and fill a sg table, fr fr


πŸŽ€ SYNOPSIS πŸŽ€

int amdgpu_vram_mgr_alloc_sgt (struct amdgpu_device *adev , struct
       ttm_resource *res , u64 offset , u64 length , struct device *dev , enum
       dma_data_direction dir , struct sg_table **sgt );

like… look at all those arguments. she's got range. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” the amdgpu device pointer 🫢
  • res β€” the TTM memory object (iykyk)
  • offset β€” byte offset from the base of VRAM BO πŸ”₯
  • length β€” number of bytes to export in sg_table
  • dev β€” the other device πŸ‘€
  • dir β€” dma direction
  • sgt β€” the resulting sg table, the whole point of the whole thing πŸ’€

⭐ DESCRIPTION ⭐

Allocate and fill a sg table from a VRAM allocation. that's it, that's the vibe β€” you hand it a VRAM allocation and it comes back with a filled-in scatter-gather table. iconic behavior honestly. πŸ‘‘


🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c

like, go read the whole friend group. they all live together in ./drivers/gpu/drm/amd/amdgpu and they ate. πŸ“


mwah πŸ’œ that's the whole page!! this one came from the ./drivers/gpu/drm/amd/amdgpu source directory and it's dated October 2026 β€” so yeah, mark your calendars bestie, love u, bye!! πŸ§šβœ¨πŸŽ€

πŸ“¦ where this page comes from