drm_crtc_from_index(9)
β¨ drm_crtc_from_index(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one lives in drm_crtc_from_index(9) and it's genuinely one of the more wholesome little helpers in the DRM universe π
πΈ NAME πΈ
drm_crtc_from_index β find the registered CRTC at an index π
π¦ SYNOPSIS π¦
struct drm_crtc * drm_crtc_from_index (struct drm_device *dev , int idx );
π ARGUMENTS π
devβ the DRM device, your main character π«Άidxβ the index of the registered CRTC you're trying to hunt down π
π DESCRIPTION π
So like, you hand it a CRTC index and it goes and returns the registered CRTC from the DRM device's list of CRTCs β the one whose index matches. That's it, that's the whole vibe β¨
This is the inverse of drm_crtc_index, no cap. It's lowkey iconic in the vblank callbacks (think drm_driver.enable_vblank or drm_driver.disable_vblank), because those are still out here dealing with indices instead of pointers to struct drm_crtc. iykyk π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_crtc.c overview(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_mode_setcrtc(9)drm_crtc_create_scaling_filter_property(9)drm_crtc_in_clone_mode(9)
and that's the whole page, bestie β go off π
π¦ sign-off tea: this one comes to you from ./drivers/gpu/drm, dated October 2026, and it's filed under drm_crtc_from_index(9) in case you ever need to find it again β¨π
π¦ 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