drm_add_edid_modes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_add_edid_modes ✨

okay so bestie, welcome to the drm_add_edid_modes(9) page πŸ’– this is one of those Kernel API Manual entries, and it's all about pulling display modes out of EDID data if there's any to be found. let's get into it πŸŽ€


🌸 SYNOPSIS 🌸

int drm_add_edid_modes (struct drm_connector *connector , struct edid
*edid );

like. that's the whole vibe. one call, two args, go off πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • connector β€” the connector we're probing, iykyk πŸ”
  • edid β€” the EDID data itself, the whole point of the operation πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

so what this does is, it adds the specified modes to the connector's mode list ✨ and yes that's the main character moment, but it's not the only thing β€” it also fills out the drm_display_info structure and the ELD in connector with any information that can be derived from the edid. two-for-one, we love to see it 🫢

⚠️ okay major heads up bestie β€” this function is deprecated. use drm_edid_connector_add_modes instead. no cap, it's the replacement πŸ’€

⭐ RETURN ⭐

it returns the number of modes added β€” or 0 if we couldn't find any 😭 (nothing to slay, unfortunately)


🌈 SEE ALSO 🌈

also check out the kernel file ./drivers/gpu/drm/drm_edid.c β€” that's where the magic lives 🧚 and here's the full squad of related functions, every single one, no skipping πŸ’–


and that's the whole page, bestie, you ate that πŸ“πŸ’… this lil number lives over in ./drivers/gpu/drm, dated October 2026, straight from the Kernel API Manual ✨ mwah, go read some EDID πŸŽ€

πŸ“¦ where this page comes from