drm_mm_hole_node_end(9)
π drm_mm_hole_node_end(9) β like, the Kernel API Manual era π
okay so bestie, we're deep in the kernel API manual rn and this one is a little helper function that tells you where a hole ends β yes, a hole, keep reading, it's about memory not vibes π
β¨ NAME β¨
drm_mm_hole_node_end β literally computes the end of the hole that follows @node. that's it, that's the whole job π«Ά
πΈ SYNOPSIS πΈ
u64 drm_mm_hole_node_end (const struct drm_mm_node *hole_node );
π¦ ARGUMENTS π¦
hole_nodeβ adrm_mm_nodethat implicitly tracks the hole right after it. like it's not officially a "hole tracker" on paper but bestie it knows things π
π DESCRIPTION π
so this one is useful for driver-specific debug dumpers β that's its whole moment to shine β¨ otherwise? drivers should not be out here inspecting holes themselves, no cap. that's not your lane, stay in your lane π§
and before you even think about calling this, drivers must check first whether a hole indeed follows β how? by looking at drm_mm_hole_follows. vibe check your holes before you compute them, periodt π
fr fr do the drm_mm_hole_follows check first or you're just yolo-ing through memory π
β RETURN β
the end of the subsequent hole. iconic. that's the answer, that's what you came for π
π SEE ALSO π
kernel file ./include/drm/drm_mm.h plus this whole cute little friend group π
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_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_for_each_node_in_range(9)drm_mm_scan_init(9)
and that's the page, bestie π sourced straight from ./include/drm and dated October 2026 β go forth and get that hole end, you absolute main character π
β¨π¦
π¦ 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