drm_atomic_h...create_state(9)
π drm_atomic_h...create_state(9) β like, the Kernel API Manual, bestie
Okay so this page is drm_atomic_h...create_state(9) from the Kernel API Manual, and it's genuinely such a vibe. Let's get into it π«Ά
β¨ NAME β¨
drm_atomic_helper_connector_create_state β the default &drm_connector_funcs.atomic_create_state hook for connectors. That's it, that's the whole job π
πΈ SYNOPSIS πΈ
struct drm_connector_state * drm_atomic_helper_connector_create_state
(struct drm_connector *connector );
π ARGUMENTS π
connectorβ the connector object. It's the main character here, no cap π
π¦ DESCRIPTION π¦
So what it does is, it allocates and initializes a pristine drm_connector_state. Pristine. Like fresh-out-the-box, never-been-touched, immaculate energy β¨
And why do we care? Because this is lowkey so useful for drivers that don't subclass drm_connector_state. If you're not subclassing, this is your girl fr fr π
π₯ RETURN π₯
It gives you back a pointer to the new connector state β or ERR_PTR on failure. So like, check that pointer, bestie, don't just assume it slayed π
π SEE ALSO π
The whole friend group, honestly. First up, the kernel file ./drivers/gpu/drm/drm_atomic_state_helper.c and the page atomic state reset and initialization(9) β then the rest of the crew:
__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_reset(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)
Okay bye, go create some pristine state β¨ This one lives in ./drivers/gpu/drm, it's dated October 2026, and it goes by drm_atomic_h...create_state(9) β ily, stay atomic π
π¦ 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