drm_atomic_...rop_for_crtc(9)
π drm_atomic_set_mode_prop_for_crtc β Kernel API Manual β¨
okay so real talk, bestie, this is a page straight out of the Linux kernel API manual β like, the actual Kernel API Manual, no cap π«Ά. The full name of the function is drm_atomic_set_mode_prop_for_crtc, and yeah the page header gets truncated to drm_atomic_...rop_for_crtc(9) because terminals are dramatic and love a cliffhanger π. Anyway. Sit down, grab a strawberry drink π, and let's get into it.
πΈ NAME πΈ
drm_atomic_set_mode_prop_for_crtc β set the mode for a CRTC, but make it blob π
β¨ SYNOPSIS β¨
int drm_atomic_set_mode_prop_for_crtc(struct drm_crtc_state *state,
struct drm_property_blob *blob);
π ARGUMENTS π
stateβ the CRTC whose incoming state we're updating. she's the main character here πblobβ a pointer to the blob property to use for the mode. like, the vibe source π
π¦ DESCRIPTION π¦
So what she does is: she sets a mode on the CRTC state you want, and that mode originates from a blob property. iconic behavior, honestly.
The way this works is she takes a reference on the blob property for the CRTC state π β and at the same time she releases the reference held on the state's existing mode property, if any was set. so it's giving responsible refcounting queen, no leaks, we stan π§β¨
π₯ RETURN π₯
- Zero on success π (slay)
- An error code on failure π
- She cannot return
-EDEADLKβ literally not possible, don't even worry about it π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_atomic_uapi.cβ go read it, iykyk π overview(9)drm_atomic_set_mode_for_crtc(9)drm_atomic_set_crtc_for_plane(9)drm_atomic_set_fb_for_plane(9)drm_atomic_set_colorop_for_plane(9)drm_atomic_set_crtc_for_connector(9)explicit fencing properties(9)
bestie this whole page lives in ./drivers/gpu/drm β that's the directory, she's at home there π‘
and that's the whole thing!! from your girl, dated October 2026, filed under the drm_atomic_...rop_for_crtc(9) header because some things in life are just truncated π mwah, go set some modes πβ¨
π¦ 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