drm_atomic_..._for_encoder(9)
π drm_atomic_get_old_crtc_for_encoder(9) π
okay so bestie, this is a page from the Kernel API Manual (yes, the actual kernel docs, we're in the big leagues now π) and it's all about one very specific little function. Let's get into it.
β¨ NAME β¨
drm_atomic_get_old_crtc_for_encoder β get the old crtc for an encoder π
Like, that's literally the whole vibe. It fetches the old crtc that belonged to an encoder. Slay.
πΈ SYNOPSIS πΈ
struct drm_crtc * drm_atomic_get_old_crtc_for_encoder (struct
drm_atomic_commit *state , struct drm_encoder *encoder );
no cap, that's the exact signature, copy it character for character bestie π
π¦ ARGUMENTS π¦
stateβ the atomic state. this is the β¨ everything β¨ bag of the atomic commit world.encoderβ the encoder whose crtc state we're fetching. it's giving main character energy, but it's not the one doing the fetching, iykyk.
π DESCRIPTION π
so basically: this function goes and finds the crtc that was connected to encoder, as specified by the state. then it hands it back to you. that's it. that's the whole function. obsessed with the simplicity, honestly π«Ά
β RETURN β
it returns the old crtc connected to encoder β or NULL if the encoder isn't connected. so if you get NULL back, don't panic, it just means nobody's home π π
π SEE ALSO π
okay this list is long long, but bestie I would never leave anything out, so here's every single one, exactly as written:
Kernel file ./drivers/gpu/drm/drm_atomic.c, state lifetime(9), drm_crtc_commit_wait(9), drm_atomic_commit_default_release(9), drm_atomic_commit_init(9), drm_atomic_commit_alloc(9), drm_atomic_commit_default_clear(9), drm_atomic_commit_clear(9), __drm_atomic_commit_free(9), drm_atomic_get_crtc_state(9), drm_atomic_get_plane_state(9), drm_atomic_get_colorop_state(9), drm_atomic_get_old_colorop_state(9), drm_atomic_get_new_colorop_state(9), drm_atomic_plane_check(9), handling driver private state(9), drm_atomic_private_obj_init(9), drm_atomic_private_obj_fini(9), drm_atomic_get_private_obj_state(9), drm_atomic_get_old_private_obj_state(9), drm_atomic_get_new_private_obj_state(9), drm_atomic_get_old_connector_for_encoder(9), drm_atomic_get_new_connector_for_encoder(9), drm_atomic_get_connector_for_encoder(9), drm_atomic_get_new_crtc_for_encoder(9), drm_atomic_get_connector_state(9), drm_atomic_get_bridge_state(9), drm_atomic_get_old_bridge_state(9), drm_atomic_get_new_bridge_state(9), drm_atomic_add_encoder_bridges(9), drm_atomic_add_affected_connectors(9), drm_atomic_add_affected_planes(9), drm_atomic_add_affected_colorops(9), drm_atomic_check_only(9), drm_atomic_commit(9), drm_atomic_nonblocking_commit(9), drm_atomic_print_new_state(9), drm_state_dump(9)
like, that's the whole friend group right there π go read them if you want the full lore, fr fr.
π‘ tiny note bestie: this page lives under ./drivers/gpu/drm, and the manual dates it October 2026 β so if you're reading this from the future, hi, hope the kernel is thriving πΈ
stay iconic, read your manpages, and remember: the old crtc is always out there somewhere π β¨π
π¦ 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