drm_atomic_h...create_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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