drm_mode_setcrtc(9)
π drm_mode_setcrtc(9) π
okay bestie, welcome to the Kernel API Manual β this is the page for drm_mode_setcrtc, and it's giving "let's set up a CRTC configuration" energy. no cap. β¨
π NAME π
drm_mode_setcrtc β set CRTC configuration π
πΈ SYNOPSIS πΈ
int drm_mode_setcrtc (struct drm_device *dev , void *data , struct drm_file *file_priv );
β¨ ARGUMENTS β¨
devβ thedrmdevice for the ioctl, aka the main-character device this call is happening on. πdataβ the data pointer for the ioctl, literally carrying the payload. πfile_privβ thedrmfile for the ioctl call, the file-side bestie for this operation. π«Ά
π¦ DESCRIPTION π¦
okay so this function builds a brand-new CRTC configuration based on what the user requested. it's called by the user via an ioctl β so yes, user space asks, and this function handles the setup. periodt. π«
π RETURN π
returns 0 on success, and a negative errno on failure. slay when it works, negative number when it doesn't. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_crtc.coverview(9) β the whole file overview situation. π 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_crtc_check_viewport(9)drm_crtc_create_scaling_filter_property(9)drm_crtc_in_clone_mode(9)
and that's the page, bestie π this one came from ./drivers/gpu/drm, with the date October 2026 β periodt. πβ¨
π¦ 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