drm_get_edid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_get_edid πŸ’–

okay bestie, welcome to the drm_get_edid(9) page from the Kernel API Manual β€” yes this is a kernel function, we're in the big leagues now, and no cap it's actually way simpler than it sounds 🫢


✨ NAME ✨

drm_get_edid β€” get EDID data, if available 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

struct edid * drm_get_edid (struct drm_connector *connector , struct i2c_adapter *adapter );

literally just two arguments, both pointers, and it hands you back a struct edid * β€” the way that signature ate πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • connector β€” the connector we're probing πŸ‘€ like, the thing on the graphics side we're trying to learn stuff about
  • adapter β€” the I2C adapter to use for DDC ⭐

🌈 DESCRIPTION 🌈

so here's the vibe: we poke the given I2C channel (adapter) to grab the EDID data if possible β€” think of it as a little "hey bestie, u up? send ur display info" text πŸ₯Ί

and if we do find it, we attach it to the connector. that's it. that's the whole function. main character energy but make it minimal 🧚


πŸ’œ RETURN πŸ’œ

A pointer to a valid EDID β€” or NULL if we couldn't find any 😭 (yes, you gotta check it, please check it, do it for me πŸ™ˆ)


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file you wanna look at lives right here: ./drivers/gpu/drm/drm_edid.c πŸ“

and here's the whole friend group, all the siblings and cousins, every single one of them πŸ“


and that's the whole page bestie!! ✨ this cutie lives in the ./drivers/gpu/drm directory (the <italic>Kernel API Manual</italic> corner of the universe, iykyk) and this version is dated October 2026 β€” go forth and probe that DDC, you're gonna slay πŸ’…πŸ’–

πŸ“¦ where this page comes from