drm_mm_scan_color_evict(9)
π 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β adrm_mmscan 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
NULLif there are no overlapping nodes. nothing to do, we love a chill outcome π§
heads up bestie: don't go dereferencing that return value without aNULLcheck, okay? theNULLcase is real and it WILL humble you π
π SEE ALSO π
the whole friend group, fr fr:
- Kernel file
./drivers/gpu/drm/drm_mm.cOverview(9) DECLARE_NEXT_HOLE_ADDR(9)drm_mm_reserve_node(9)drm_mm_insert_node_in_range(9)drm_mm_remove_node(9)lru scan roster(9)drm_mm_scan_init_with_range(9)drm_mm_scan_add_block(9)drm_mm_scan_remove_block(9)drm_mm_init(9)drm_mm_takedown(9)drm_mm_print(9)
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
- 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