amdgpu_evict_flags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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