drm_connect...tadata_equal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_connector_atomic_hdr_metadata_equal β€” from the Kernel API Manual, bestie

okay so real talk, this one lives in the Kernel API Manual (that's the manual name, noted, we move on) and it's genuinely one of the shorter ones so we can absolutely get through it together 🫢


✨ NAME ✨

drm_connector_atomic_hdr_metadata_equal β€” literally just checks if the HDR metadata changed. that's it. that's the whole job πŸ’…


🌸 SYNOPSIS 🌸

bool drm_connector_atomic_hdr_metadata_equal (struct drm_connector_state
*old_state , struct drm_connector_state *new_state );

look at her go. returns a bool, takes two connector states, no cap ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • old_state β€” the old connector state you're comparing, like the before pic πŸ“Έ
  • new_state β€” the new connector state you're comparing, the after pic πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

okay so this is the function HDR-enabled drivers use to test whether the HDR metadata actually changed between two different connector states. and like β€” plot twist β€” if it did change, that probably means you need a full blown mode change 😭 so it's lowkey a big deal, not just a vibe check.


⭐ RETURN ⭐

  • True if the metadata are equal
  • False otherwise

that's the whole contract, bestie, no surprises πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

okay this is the part where the manpage dumps the entire friend group on you, and I'm not skipping a single one because they're all iconic in their own way πŸ‘‘

Kernel file ./drivers/gpu/drm/drm_connector.c overview(9), drm_get_connector_type_name(9), drm_connector_get_cmdline_mode(9), drm_connector_init(9), drm_connector_dynamic_init(9), drm_connector_init_with_ddc(9), drmm_connector_init(9), drmm_connector_hdmi_init(9), drm_connector_attach_edid_property(9), drm_connector_attach_encoder(9), drm_connector_has_possible_encoder(9), drm_connector_cec_phys_addr_invalidate(9), drm_connector_cec_phys_addr_set(9), drm_connector_cleanup(9), drm_connector_register(9), drm_connector_dynamic_register(9), drm_connector_unregister(9), drm_get_connector_status_name(9), drm_get_connector_force_name(9), drm_connector_list_iter_begin(9), drm_connector_list_iter_next(9), drm_connector_list_iter_end(9), drm_get_subpixel_order_name(9), drm_display_info_set_bus_formats(9), drm_get_tv_mode_from_name(9), drm_get_colorspace_name(9)

standard connector properties(9), drm_mode_create_dvi_i_properties(9), drm_connector_attach_dp_subconnector_property(9), HDMI connector properties(9), Analog TV Connector Properties(9), drm_connector_attach_content_type_property(9), drm_connector_attach_tv_margin_properties(9), drm_mode_create_tv_margin_properties(9), drm_mode_create_tv_properties_legacy(9), drm_mode_create_tv_properties(9), drm_mode_create_scaling_mode_property(9), Variable refresh properties(9), drm_connector_attach_vrr_capable_property(9), drm_connector_attach_scaling_mode_property(9), drm_mode_create_aspect_ratio_property(9), standard connector properties(9) (yes she's here twice, she said hi again πŸ’€), drm_mode_create_hdmi_colorspace_property(9), drm_mode_create_dp_colorspace_property(9), drm_mode_create_content_type_property(9), drm_mode_create_suggested_offset_properties(9)

drm_connector_set_path_property(9), drm_connector_set_tile_property(9), drm_connector_set_link_status_property(9), drm_connector_attach_max_bpc_property(9), drm_connector_attach_hdr_output_metadata_property(9), drm_connector_attach_broadcast_rgb_property(9), drm_connector_attach_colorspace_property(9), Color format(9), drm_connector_attach_color_format_property(9), drm_connector_set_vrr_capable_property(9), drm_connector_set_panel_orientation(9), drm_connector_set_panel_orientation_with_quirk(9), drm_connector_set_orientation_from_panel(9), drm_connector_create_privacy_screen_properties(9), drm_connector_attach_privacy_screen_properties(9), drm_connector_attach_privacy_screen_provider(9), drm_connector_update_privacy_screen(9)

drm_connector_find_by_fwnode(9), drm_connector_oob_hotplug_event(9), drm_connector_get_color_format(9), Tile group(9), drm_mode_put_tile_group(9), drm_mode_get_tile_group(9), drm_mode_create_tile_group(9), drm_connector_attach_panel_type_property(9)

like I said. the whole group chat. read it, know it, live it 🧚


ngl the entire function is just a bool comparison and yet the SEE ALSO section is longer than my attention span β€” but that's the kernel for you πŸ’€

and that's the page, bestie!! πŸŽ€ this gem lives in ./drivers/gpu/drm and the version stamp on it is October 2026 β€” so like, from the future, main character energy fr fr πŸ’œ go forth and compare those HDR metadata states 🌈✨

πŸ“¦ where this page comes from