drm_mm_for_...ode_in_range(9)
π NAME π
okay so this is the drm_mm_for_...ode_in_range(9) page from the Kernel API Manual, and the actual star of the show is drm_mm_for_each_node_in_range β an iterator to walk over a range of allocated nodes. periodt. β¨
πΈ SYNOPSIS πΈ
drm_mm_for_each_node_in_range (node__ , mm__ , start__ , end__ );
π ARGUMENTS π
node__β thedrm_mm_nodestructure to assign to in each iteration step. this is the little guy getting updated every loop, bestie.mm__β thedrm_mmallocator to walk. it's giving main character allocator energy.start__β starting offset; the first node will overlap this.end__β ending offset; the last node will start before this (but may overlap). yes, overlap is allowed, no cap.
π¦ DESCRIPTION π¦
This iterator walks over all nodes in the range allocator that lie between start and end. It is implemented similarly to list_for_each, but using the internal interval tree to accelerate the search for the starting node, and so it is not safe against removal of elements. do not be out here deleting stuff mid-walk, bestie π
It assumes that end is within (or is the upper limit of) the drm_mm allocator.
π¨ warning time: if[start, end]are beyond the range of thedrm_mm, the iterator may walk over the special_unallocated_drm_mm.head_node, and may even continue indefinitely. that's the βwhy is my loop not endingβ vibe check nobody wants π
π SEE ALSO π
- Kernel file:
./include/drm/drm_mm.h enum drm_mm_insert_mode(9)struct drm_mm_node(9)struct drm_mm(9)struct drm_mm_scan(9)drm_mm_node_allocated(9)drm_mm_initialized(9)drm_mm_hole_follows(9)drm_mm_hole_node_start(9)drm_mm_hole_node_end(9)drm_mm_nodes(9)drm_mm_for_each_node(9)drm_mm_for_each_node_safe(9)drm_mm_for_each_hole(9)drm_mm_insert_node_generic(9)drm_mm_insert_node(9)drm_mm_clean(9)drm_mm_scan_init(9)
okay that's the whole page, bestie π«Ά β source/version ./include/drm, date October 2026, and page title drm_mm_for_...ode_in_range(9). go walk ur nodes 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