amdgpu_ttm_...mio_remap_bo(9)
π amdgpu_ttm_...mio_remap_bo(9) π
okay so this is a page straight out of the Kernel API Manual, and honestly? it's a little baddie with a big job. sit down, bestie, we're freeing a BO. π«Ά
β¨ NAME β¨
amdgpu_ttm_free_mmio_remap_bo β literally frees the singleton MMIO_REMAP BO. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
void amdgpu_ttm_free_mmio_remap_bo (struct amdgpu_device *adev );
no return value, no drama β it just does the thing and dips. π
π¦ ARGUMENTS π¦
adevβ the amdgpu device in question. your main character struct, if you will. π
π DESCRIPTION π
so here's the tea: this function frees the kernel-owned MMIO_REMAP BO, but only if it was actually allocated by amdgpu_ttm_mmio_remap_bo_init. no cap. if nobody allocated it, there's nothing to free and this thing just minds its own business. π
π₯ SEE ALSO π₯
the whole friend group lives in the kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c β go say hi to all of them:
amdgpu_evict_flags(9)amdgpu_ttm_map_buffer(9)amdgpu_ttm_copy_mem_to_mem(9)amdgpu_res_cpu_visible(9)amdgpu_ttm_domain_start(9)amdgpu_ttm_mmio_remap_alloc_sgt(9)amdgpu_ttm_tt_create(9)amdgpu_ttm_tt_get_userptr(9)amdgpu_ttm_tt_set_userptr(9)amdgpu_ttm_tt_pde_flags(9)amdgpu_ttm_tt_pte_flags(9)amdgpu_ttm_access_memory(9)amdgpu_ttm_training_reserve_vram_fini(9)amdgpu_ttm_alloc_mmio_remap_bo(9)amdgpu_ttm_enable_buffer_funcs(9)amdgpu_ttm_disable_buffer_funcs(9)amdgpu_ttm_clear_buffer(9)amdgpu_ttm_evict_resources(9)
like, that's the whole squad. iykyk. π
β and that's the page, bestie! this little gem lives over in ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β iconic, timeless, fr fr. slay. ππ
π¦ 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