drm_rect_overlap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_rect_overlap(9) πŸ’–

okay bestie, so this is a page from the Kernel API Manual β€” yes, the actual kernel manual, we're in the big leagues now β€” and it's about drm_rect_overlap, which is genuinely the most "are we vibing or not" function in all of DRM. it's a little bool-returning icon and honestly it ate. πŸŽ€


✨ NAME ✨

drm_rect_overlap β€” check if two rectangles overlap 🌸

like, do these two boxes share space or are they living in their own separate eras? that's the whole function. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

bool drm_rect_overlap (const struct drm_rect *a , const struct drm_rect *b );

it hands you back a bool. true = they're overlapping, false = they're not. main character energy from a one-line function, we love to see it. πŸ’…


🌈 ARGUMENTS 🌈

  • a β€” the first rectangle πŸ‘‘ like, the one you're checking from, yk?
  • b β€” the second rectangle 🫢 the one you're checking against

both are const struct drm_rect * β€” const because we're respectful, we're not gonna touch your rectangles, we're just gonna look at them. πŸ™ˆ


⭐ RETURN ⭐

true if the rectangles overlap, false otherwise.

literally that's it. a vibe check that returns a boolean. πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

so the actual source of truth lives in the kernel file ./include/drm/drm_rect.h β€” go drink from the firehose, bestie, it's all there. and while you're at it, meet the whole friend group:

that's the whole squad and every single one of them is invited to the group chat. πŸ’–


ngl if you're out here comparing rectangles without at least glancing at drm_rect_equals(9) too, you're lowkey doing the most. just saying. πŸ’€

okay that's the page!! this one's from ./include/drm, dated October 2026, and it's drm_rect_overlap(9) signing off β€” mwah, slay, periodt, go check your rectangles πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from