drm_rect_equals(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_rect_equals β€” bestie, are these two rectangles literally the same??

okay so this one's from the Kernel API Manual, page drm_rect_equals(9), and it's genuinely one of the most chill functions in the whole DRM situation. no cap. it's a vibe check for rectangles. πŸŽ€


✨ NAME ✨

drm_rect_equals β€” determine if two rectangles are equal 🫢

like… that's it. that's the whole job. it looks at two rectangles and tells you if they're twins or not. iconic behavior honestly.


🌸 SYNOPSIS 🌸

bool drm_rect_equals (const struct drm_rect *r1 , const struct drm_rect *r2 );

so yeah, it takes two pointers β€” r1 and r2 β€” both const struct drm_rect * (const!! it's not gonna touch them, it's a respectful king πŸ‘‘), and it hands you back a bool. that's the tea. πŸ“


πŸ¦‹ ARGUMENTS πŸ¦‹

  • r1 β€” first rectangle πŸ’– (the first one. the OG. the main character of the pair.)
  • r2 β€” second rectangle πŸ’œ (the other one. also important! don't do r2 dirty.)

⭐ RETURN ⭐

true if the rectangles are equal, false otherwise.

that's it. no weird edge cases in the docs, no surprise -1, no errno shenanigans. just yes or no. slay. πŸ”₯

lowkey the most refreshing return contract ever β€” it's giving "I know what I am" energy.

🌈 SEE ALSO 🌈

okay this is where it gets stacked, bestie. the whole rect squad shows up. literally the entire friend group:

like… the way drm_rect_overlap(9) is right there at the end, the natural sequel. iykyk. 😭


and that's the page!! written in the ./include/drm era, dated October 2026, and if you ever forget the name it's literally drm_rect_equals(9) β€” same as the top, same as the bottom, because this function is nothing if not consistent. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from