STRUCT DRM_RECT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to struct drm_rect(9) from the Kernel API Manual ✨ β€” this is all about struct drm_rect, aka a two dimensional rectangle πŸ’…. Geometry but make it kernel glam πŸŽ€.

✨ SYNOPSIS ✨

struct drm_rect {
    int x1, y1, x2, y2;
 };

🌸 Members 🌸

  • x1 β€” horizontal starting coordinate (inclusive) πŸ’–
  • y1 β€” vertical starting coordinate (inclusive) πŸ¦‹
  • x2 β€” horizontal ending coordinate (exclusive) ✨
  • y2 β€” vertical ending coordinate (exclusive) 🌈

πŸŽ€ Description πŸŽ€

so like, major note bestie: this must match the layout of struct drm_mode_rect or the damage helpers like drm_atomic_helper_damage_iter_init break 😭. no cap, keep the layout matching or things go sideways πŸ’€.

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, iykyk πŸ‘‘


that's the whole page, bestie 🫢 β€” source ./include/drm, October 2026, struct drm_rect(9) πŸ’‹

πŸ“¦ where this page comes from