amdgpu_vram_mgr_alloc_sgt(9)
π 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 insg_tabledevβ the other device πdirβ dma directionsgtβ 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
mem_info_vram_total(9)mem_info_vis_vram_total(9)mem_info_vram_used(9)mem_info_vis_vram_used(9)mem_info_vram_vendor(9)amdgpu_vram_mgr_vis_size(9)amdgpu_vram_mgr_bo_visible_size(9)amdgpu_vram_mgr_reserve_range(9)amdgpu_vram_mgr_query_page_status(9)amdgpu_vram_mgr_new(9)amdgpu_vram_mgr_del(9)amdgpu_vram_mgr_free_sgt(9)amdgpu_vram_mgr_vis_usage(9)amdgpu_vram_mgr_clear_reset_blocks(9)amdgpu_vram_mgr_intersects(9)amdgpu_vram_mgr_compatible(9)amdgpu_vram_mgr_debug(9)amdgpu_vram_mgr_init(9)amdgpu_vram_mgr_fini(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms