drm_mm_scan_init_with_range(9)
drm_mm_scan_init_with_range(9) π
okay so hiii bestie, welcome to the Kernel API Manual era for drm_mm_scan_init_with_range(9) β¨. This is the function that sets up your range-restricted LRU scanning, and honestly it's giving very organized main character energy π.
πΈ NAME πΈ
drm_mm_scan_init_with_range β initialize range-restricted lru scanning. periodt. π
β¨ SYNOPSIS β¨
void drm_mm_scan_init_with_range (struct drm_mm_scan *scan , struct
drm_mm *mm , u64 size , u64 alignment , unsigned long color , u64 start
, u64 end , enum drm_mm_insert_mode mode );
π¦ ARGUMENTS π¦
scanβ the scan state. this is the glow-up target, bestie π«mmβ thedrm_mmto scan πsizeβ size of the allocation πalignmentβ alignment of the allocation πcolorβ opaque tag value to use for the allocation π¨startβ start of the allowed range for the allocation π©endβ end of the allowed range for the allocation πmodeβ fine-tune the allocation search and placement ποΈ
π₯ DESCRIPTION π₯
This is literally just the setup: it gets the scanning routines ready with the parameters for the desired hole. that's it, that's the job β no overthinking, just wiring the scan with the right hole parameters π³οΈβ¨
β οΈ Warning: while the scan list is non-empty, the only allowed operations are adding/removing nodes to/from the scan list. so yeah, while the scan list has anything in it, the only moves are adding/removing nodes to/from the scan list β don't try anything else, bestie π¨π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_mm.cOverview(9) β the big-picture file, iykyk πΊοΈ 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_add_block(9)drm_mm_scan_remove_block(9)drm_mm_scan_color_evict(9)drm_mm_init(9)drm_mm_takedown(9)drm_mm_print(9)
mwah π β source/version: ./drivers/gpu/drm, date: October 2026, and the page is drm_mm_scan_init_with_range(9). stay slay, bestie π«Ά
π¦ 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