drm_match_cea_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_match_cea_mode(9) β€” like, the Kernel API Manual page you've been waiting for πŸŽ€

okay so this is the drm_match_cea_mode(9) page from the Kernel API Manual, and bestie, it's short but it matters. we're matching display modes to CEA modes today and honestly? it's giving "small function, big responsibilities" energy. periodt. ✨


🌸 NAME 🌸

drm_match_cea_mode β€” bestie's whole job is to look for a CEA mode that matches the mode you handed it πŸ’–


✨ SYNOPSIS ✨

u8 drm_match_cea_mode (const struct drm_display_mode *to_match );

one function, one argument, returns a u8. no cap, that's the whole vibe check. πŸ¦‹


🫢 ARGUMENTS 🫢

  • to_match β€” the display mode you want to match up, iconic input, no notes 🌟

πŸ”₯ RETURN πŸ”₯

it hands you back the CEA Video ID (VIC) of the mode πŸ’… and if your mode isn't a CEA-861 mode? you get 0. literally zero. not a VIC, just a shrug πŸ™ˆ

ngl, 0 is the "no match found, bestie" signal β€” don't go treating it like a real VIC id, okay? 😭

πŸŽ€ SEE ALSO πŸŽ€

the kernel file ./drivers/gpu/drm/drm_edid.c is where this all lives, and here is the entire friend group β€” every single one, i'm not skipping a single bestie:

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_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_from_display_mode(9), drm_hdmi_avi_infoframe_quant_range(9), drm_hdmi_vendor_infoframe_from_display_mode(9), drm_edid_is_digital(9)

like, that's the whole group chat right there 🫢✨


🌈 the cute sign-off 🌈

this page lives under the ./drivers/gpu/drm directory, it's dated October 2026, and it's part of the Kernel API Manual β€” go off, kernel docs, you ate πŸ’œπŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from