drm_add_edid_modes(9)
β¨ 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 π
drm_edid_header_is_valid(9)drm_edid_is_valid(9)drm_edid_valid(9)drm_do_probe_ddc_edid(9)drm_edid_override_connector_update(9)drm_edid_raw(9)drm_edid_alloc(9)drm_edid_dup(9)drm_edid_free(9)drm_probe_ddc(9)drm_get_edid(9)drm_edid_read_custom(9)drm_edid_read_ddc(9)drm_edid_read(9)drm_edid_get_product_id(9)drm_edid_print_product_id(9)drm_edid_get_panel_id(9)drm_edid_read_base_block(9)drm_get_edid_switcheroo(9)drm_edid_read_switcheroo(9)drm_edid_duplicate(9)edid_get_quirks(9)drm_match_cea_mode(9)drm_display_mode_from_cea_vic(9)drm_edid_match(9)drm_edid_get_monitor_name(9)drm_edid_to_sad(9)drm_edid_to_speaker_allocation(9)drm_av_sync_delay(9)drm_detect_hdmi_monitor(9)drm_detect_monitor_audio(9)drm_default_rgb_quant_range(9)drm_edid_connector_update(9)drm_edid_connector_add_modes(9)drm_connector_update_edid_property(9)drm_add_modes_noedid(9)drm_hdmi_avi_infoframe_from_display_mode(9)drm_hdmi_avi_infoframe_quant_range(9)drm_hdmi_vendor_infoframe_from_display_mode(9)drm_edid_is_digital(9)
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
- 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