STRUCT DRM_RECT(9)
π 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 π
- Kernel file
./include/drm/drm_rect.hrect utils(9) DRM_RECT_INIT(9)DRM_RECT_FMT(9)DRM_RECT_ARG(9)DRM_RECT_FP_FMT(9)DRM_RECT_FP_ARG(9)drm_rect_init(9)drm_rect_adjust_size(9)drm_rect_translate(9)drm_rect_translate_to(9)drm_rect_downscale(9)drm_rect_width(9)drm_rect_height(9)drm_rect_visible(9)drm_rect_equals(9)drm_rect_fp_to_int(9)drm_rect_overlap(9)
that's the whole page, bestie π«Ά β source ./include/drm, October 2026, struct drm_rect(9) π
π¦ 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