__drm_atomi...nector_reset(9)
π
__drm_atomic_helper_connector_reset β a Kernel API Manual moment (yes bestie, that's the 9 section, the kernel one) π
okay so picture this: you're deep in the kernel API manual, the header's all like __drm_atomi...nector_reset(9) because apparently even manpage titles get the truncated-girl-treatment π, and you just need to know how to reset a connector's state. bestie. i got you. this is literally that page. π«Ά
β¨ NAME β¨
__drm_atomic_helper_connector_reset β reset state on connector π«
πΈ SYNOPSIS πΈ
void __drm_atomic_helper_connector_reset (struct drm_connector
*connector , struct drm_connector_state *conn_state );
like, it returns void. it gives nothing back. it simply does. main character energy fr fr π
π¦ ARGUMENTS π¦
connectorβ a drm connector, that's the vibe πconn_stateβ the connector state you're assigning to it β¨
π DESCRIPTION π
so what it does: it initializes the newly allocated conn_state and assigns it to the drm_connector->state pointer of connector π
. like, it takes that fresh state and is like "this is yours now bestie, wear it."
when do you usually need this? usually when you're initializing the drivers, or when it's called from the drm_connector_funcs.reset hook π. those are the two moments, no cap.
and the reason this little helper exists at all β this is the iconic part β it's useful for drivers that subclass the connector state π. yes, subclassing. very demure, very object-oriented of them. if that's not you, no worries, go off with the regular one. but if it is you, this is your girl. π§
ngl, the double underscore at the front of __drm_atomic_helper_connector_reset is the classic "i'm the internal one, the real one, the lowkey one" signal β but the page doesn't get into that, so neither will i π
β SEE ALSO β
like a whole group chat of related functions, and honestly? everyone's here. grab a snack π:
- Kernel file
./drivers/gpu/drm/drm_atomic_state_helper.cβ atomic state reset and initialization(9) __drm_atomic_helper_crtc_state_init(9)__drm_atomic_helper_crtc_reset(9)drm_atomic_helper_crtc_reset(9)drm_atomic_helper_crtc_create_state(9)__drm_atomic_helper_crtc_duplicate_state(9)drm_atomic_helper_crtc_duplicate_state(9)__drm_atomic_helper_crtc_destroy_state(9)drm_atomic_helper_crtc_destroy_state(9)__drm_atomic_helper_plane_state_init(9)__drm_atomic_helper_plane_reset(9)drm_atomic_helper_plane_reset(9)drm_atomic_helper_plane_create_state(9)__drm_atomic_helper_plane_duplicate_state(9)drm_atomic_helper_plane_duplicate_state(9)__drm_atomic_helper_plane_destroy_state(9)drm_atomic_helper_plane_destroy_state(9)__drm_atomic_helper_connector_state_init(9)drm_atomic_helper_connector_reset(9)drm_atomic_helper_connector_create_state(9)drm_atomic_helper_connector_tv_margins_reset(9)drm_atomic_helper_connector_tv_reset(9)drm_atomic_helper_connector_tv_check(9)__drm_atomic_helper_connector_duplicate_state(9)drm_atomic_helper_connector_duplicate_state(9)__drm_atomic_helper_connector_destroy_state(9)drm_atomic_helper_connector_destroy_state(9)__drm_atomic_helper_private_obj_create_state(9)__drm_atomic_helper_private_obj_duplicate_state(9)__drm_atomic_helper_bridge_duplicate_state(9)drm_atomic_helper_bridge_duplicate_state(9)drm_atomic_helper_bridge_destroy_state(9)__drm_atomic_helper_bridge_state_init(9)drm_atomic_helper_bridge_create_state(9)
crtc girlies, plane girlies, connector girlies, private obj girlies, bridge girlies β everyone ate ππ₯
π SIGN-OFF π
and that's the page, bestie!! π«Ά this lil masterpiece lives in ./drivers/gpu/drm (the kernel source tree, yes that one) and it's dated October 2026, which is honestly so far away it's giving time traveler βπ. go reset some state. slay. periodt. π
β¨π
π¦ 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