drm_edid_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

drm_edid_alloc β€” Allocate a new drm_edid container

Welcome to the drm_edid_alloc(9) page, bestie β€” this is straight from the Kernel API Manual, and it’s literally the container-making era for EDID data. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

const struct drm_edid * drm_edid_alloc (const void *edid , size_t size
       );

πŸŽ€ ARGUMENTS πŸŽ€

  • edid β€” Pointer to raw EDID data
  • size β€” Size of memory allocated for EDID

πŸ’… DESCRIPTION πŸ’…

Allocate a new drm_edid container. Do not calculate edid size from edid β€” pass the actual size that has been allocated for the data. There is no validation of the raw EDID data against the size, but at least the EDID base block must fit in the buffer. 😭

Heads up, bestie: there is no validation of the raw EDID data against the size, but the EDID base block still has to fit in the buffer. That part is non-negotiable. πŸ’€

The returned pointer must be freed using drm_edid_free.

🌈 RETURN 🌈

drm_edid container, or NULL on errors.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/drm_edid.c β€” plus the whole squad:


πŸ’– Source vibe: ./drivers/gpu/drm Β· October 2026 Β· page: drm_edid_alloc(9). Stay iconic, bestie! πŸ’–
πŸ“¦ where this page comes from