amdgpu_evict_flags(9)
π amdgpu_evict_flags(9) β like, the Kernel API Manual one, bestie
okay so real talk: this is a page from the Kernel API Manual, and it's about amdgpu_evict_flags. tiny function, big job. let's get into it β¨
π NAME π
amdgpu_evict_flags β compute placement flags
like... it figures out where the thing can go. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
void amdgpu_evict_flags (struct ttm_buffer_object *bo , struct
ttm_placement *placement );
no return value, no drama, just vibes and side effects. periodt. π
πΈ ARGUMENTS πΈ
boβ the buffer object to evict. yeah. that one. it's getting evicted, bestie, it's not personal πplacementβ the possible destination(s) for the evicted BO. like a little list of places it's allowed to crash-land π¬
π¦ DESCRIPTION π¦
Fill in placement data when ttm_bo_evict is called. that's it, that's the function. it doesn't do the evicting, it just fills in the placement so whoever is doing the evicting knows where things are allowed to go. lowkey iconic of it ngl π
π₯ SEE ALSO π₯
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c β go read it, iykyk π«Ά
and then the whole friend group, fr fr:
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_free_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)
and that's the whole page, no skips, no cuts π
ngl if you're actually reading this because you're debugging eviction you're doing amazing sweetie, drink some water π
βΏ sign-off time βΏ this little gem lives in ./drivers/gpu/drm/amd/amdgpu, and the page is dated October 2026 β so yeah, she's from the future, main character energy only πβ¨πΈπ
π¦ 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