drm_crtc_check_viewport(9)
π drm_crtc_check_viewport β¨
okay so bestie, welcome to the kernel API manual β this one's drm_crtc_check_viewport(9), and honestly? it's giving "tiny bouncer at the door of the display pipeline." π let's get into it.
πΈ NAME πΈ
drm_crtc_check_viewport β literally just checks that your framebuffer is big enough for the CRTC viewport. that's it. that's the whole vibe check. β¨
π¦ SYNOPSIS π¦
int drm_crtc_check_viewport (const struct drm_crtc *crtc , int x , int y
, const struct drm_display_mode *mode , const struct drm_framebuffer *fb
);
yeah she takes five args and returns an int, no cap. π
π ARGUMENTS π
crtcβ the CRTC that the framebuffer is gonna be displayed on. main character energy, obviously. πxβ x panning. yes, the letter. yes, lowercase. πyβ y panning. matching set withx, they're a duo. π«Άmodeβ the mode that the framebuffer will be displayed under. the whole aesthetic it's being styled for. πfbβ the framebuffer we're checking the size of. this is the one getting the vibe check. π₯
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_crtc.coverview(9) drm_crtc_from_index(9)- standard CRTC properties(9)
drm_crtc_init_with_planes(9)drmm_crtc_init_with_planes(9)drm_crtc_cleanup(9)drm_mode_getcrtc(9)drm_mode_set_config_internal(9)drm_mode_setcrtc(9)drm_crtc_create_scaling_filter_property(9)drm_crtc_in_clone_mode(9)
like, read those if you want the full lore. iykyk. πβ¨
ngl bestie, that's genuinely everything on this page β no extra flags, no hidden defaults, no sneaky return-value section. what you see is what you get. π
okay that's the whole page, mwah π β brought to you by the ./drivers/gpu/drm girlies, version dated October 2026, and the manual name is drm_crtc_check_viewport(9) in case you forgot already (you didn't, you're doing amazing). π§π
π¦ 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