drm_mm_scan_color_evict(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mm_scan_color_evict(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so real talk, this one lives in the Kernel API Manual and it's lowkey a niche little icon. it's called drm_mm_scan_color_evict, and yes we're gonna get into what that means. buckle up πŸ¦‹


✨ NAME ✨

drm_mm_scan_color_evict β€” evict overlapping nodes on either side of a hole. that's it, that's the whole vibe. no cap πŸ’…


🌸 SYNOPSIS 🌸

struct drm_mm_node * drm_mm_scan_color_evict (struct drm_mm_scan *scan
);

like, it takes your scan and hands you back a node pointer. main character behavior honestly πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • scan β€” a drm_mm scan that's got a target hole in it. that's the whole argument, she's a simple girlie 🫢

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• β€” after you've finished an eviction scan and removed the nodes you picked out, you might STILL need to remove a few more nodes from either side of the target hole. when does that happen? when mm.color_adjust is being used, periodt. it's giving "almost done but not quite" 😭

so yeah, this function is the cleanup crew that swings by both sides of the hole and pulls any leftover overlapping nodes. not me doing extra credit eviction 😀✨


πŸ”₯ RETURN πŸ”₯

  • a node to evict β€” slay, you got one πŸ’œ
  • or NULL if there are no overlapping nodes. nothing to do, we love a chill outcome 🧚
heads up bestie: don't go dereferencing that return value without a NULL check, okay? the NULL case is real and it WILL humble you πŸ’€

🌈 SEE ALSO 🌈

the whole friend group, fr fr:

go read them all, iykyk πŸ“šβœ¨


and that's the page!! sourced from ./drivers/gpu/drm, dated October 2026, still serving drm_mm_scan_color_evict(9) realness πŸŽ€πŸ’– ok bye ily, go evict responsibly πŸ¦‹

πŸ“¦ where this page comes from