drm_crtc_find(9)
π drm_crtc_find(9)
Okay so bestie, welcome to the Kernel API Manual β¨ β this one's a tiny little helper that lives in drm_crtc_find(9) and honestly? It's giving "small but iconic." Let's get into it π
πΈ NAME πΈ
drm_crtc_find β look up a CRTC object from its ID π¦
β SYNOPSIS β
struct drm_crtc * drm_crtc_find (struct drm_device *dev , struct
drm_file *file_priv , uint32_t id );
Like, that's the whole signature right there π
β¨ ARGUMENTS β¨
devβ the DRM device, obvi π₯οΈfile_privβ the drm file that we're checking for a lease against πidβ adrm_mode_objectID, iykyk π
π DESCRIPTION π
So what does it actually do? You can use this to look up a CRTC from its userspace ID π. That's the whole vibe.
But here's the tea β β it's only used by drivers for legacy IOCTLs and interface. No cap. Nowadays, if you're adding extensions to the KMS userspace interface, you should be doing that with drm_property instead. Periodt π
That's not me being dramatic, that's literally what it says β legacy stuff stays legacy, new stuff goes through drm_property π«Ά
π₯ SEE ALSO π₯
Go read these next, bestie, they're all in the Kernel file ./include/drm/drm_crtc.h π:
struct drm_crtc_state(9)struct drm_crtc_funcs(9)struct drm_crtc(9)struct drm_mode_set(9)drmm_crtc_alloc_with_planes(9)drm_crtc_index(9)drm_crtc_mask(9)drm_for_each_crtc(9)drm_for_each_crtc_reverse(9)
π Quick vibe check before you go: this thing is legacy territory. If you're writing new KMS interface extensions, drm_property is the main character, not this π§
Okay that's the whole page, you ate that ππ Mwah! This cutie came from ./include/drm, dated October 2026 β go forth and look up those CRTCs responsibly, bestie πβ¨
π¦ 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