drm_hdmi_avi...display_mode(9)
π NAME π
okay bestie, so drm_hdmi_avi_infoframe_from_display_mode β yes that's the whole name, it's giving "my parents let me pick my own name and I chose chaos" β literally does one iconic job: it fills an HDMI AVI infoframe with data from a DRM display mode. that's the vibe. no cap. β¨
(this whole page is from the Kernel API Manual, and the function tag is drm_hdmi_avi...display_mode(9) β shortened for the header because the full name would not fit, and honestly same. π
)
π SYNOPSIS π
int drm_hdmi_avi_infoframe_from_display_mode (struct hdmi_avi_infoframe
*frame , const struct drm_connector *connector , const struct
drm_display_mode *mode );
so it takes three pointers and returns an int. that's it. that's the whole signature. she's simple, she's clean, she's serving. π
π¦ ARGUMENTS π¦
frameβ the HDMI AVI infoframe. this is the thing getting filled up with data, she's the main character here fr fr πconnectorβ the connector. yes, that's genuinely the whole description and honestly? valid. it's the connector. πmodeβ the DRM display mode. this is where the data comes from β it's the source material, the inspo, the blueprint π«Ά
β RETURN β
0 on success, or a negative error code on failure. lowkey the classic Unix contract β zero means we ate, negative means something went sideways π
bestie pls always check the return value, a negative number is your code telling you it did not slay.
πΈ SEE ALSO πΈ
the kernel file to go peek at is ./drivers/gpu/drm/drm_edid.c β that's where the whole EDID/DRM friend group lives. and here is the entire squad, every single one, no cap, nobody gets left out of the group chat π:
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_edid_modes(9)drm_add_modes_noedid(9)drm_hdmi_avi_infoframe_quant_range(9)drm_hdmi_vendor_infoframe_from_display_mode(9)drm_edid_is_digital(9)
like, forty of them. she's popular. iykyk π
β¨ that's the whole page babes β¨ this one's out of ./drivers/gpu/drm, dated October 2026, and it's still filed under drm_hdmi_avi...display_mode(9) β go read the source, mwah πππ¦
π¦ 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