drm_atomic_..._for_encoder(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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