drmm_crtc_init_with_planes(9)
okay bestie, welcome to the Kernel API Manual page for drmm_crtc_init_with_planes(9) π
β¨ this one is all about setting up a brand-new CRTC object with its primary and cursor planes, and it is lowkey iconic.
β¨ NAME β¨
drmm_crtc_init_with_planes β initialise a new CRTC object with the specified primary and cursor planes π
π SYNOPSIS π
int drmm_crtc_init_with_planes (struct drm_device *dev , struct drm_crtc *crtc , struct drm_plane *primary , struct drm_plane *cursor , const struct drm_crtc_funcs *funcs , const char *name , ... );
π§Ύ ARGUMENTS π§Ύ
devβ the DRM device, aka the whole vibe container π«Άcrtcβ the CRTC object you're initialising, main character energy πprimaryβ the primary plane for the CRTCcursorβ the cursor plane for the CRTCfuncsβ callbacks for the new CRTC, the little handler squad β¨nameβ aprintfstyle format string for the CRTC name, orNULLfor the default name...β variable arguments, because sometimes you gotta bring the whole group chat π¬
π« DESCRIPTION π«
This initialises a new object created as the base part of a driver CRTC object. Drivers should use this function instead of drm_crtc_init, which is only provided for backwards compatibility with drivers which do not yet support universal planes).
Cleanup is automatically handled through registering drmm_crtc_cleanup with drmm_add_action π§Ήβ¨. The crtc structure should be allocated with drmm_kzalloc.
β οΈ bestie, important: thedrm_crtc_funcs.destroyhook must beNULLπ no cap.
The primary and cursor planes are only relevant for legacy uAPI, see drm_crtc.primary and drm_crtc.cursor π.
π― RETURN π―
Returns zero on success, and an error code on failure π. That's the whole return vibe.
π SEE ALSO π
go peek at these besties:
Kernel file ./drivers/gpu/drm/drm_crtc.c overview(9)drm_crtc_from_index(9)standard CRTC properties(9)drm_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)
xoxo, your kernel bestie π β source/version: ./drivers/gpu/drm, date: October 2026, page: drmm_crtc_init_with_planes(9). bye bestie, go init those CRTCs responsibly πβ¨
π¦ 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