drm_crtc_from_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ’€


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