drm_mode_equal(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to drm_mode_equal(9) from the Kernel API Manual, bestie β€” this is literally the mode equality test and it's giving β€œare these two the same or not” energy. πŸ’…

✨ NAME ✨

drm_mode_equal β€” test modes for equality, no cap.

🌈 SYNOPSIS 🌈

       bool drm_mode_equal (const struct drm_display_mode *mode1 , const struct
       drm_display_mode *mode2 );

πŸŽ€ ARGUMENTS πŸŽ€

  • mode1 β€” first mode. The one leading the vibe check.
  • mode2 β€” second mode. The other one in the comparison.

πŸ’… DESCRIPTION πŸ’…

Check to see if mode1 and mode2 are equivalent. That's the whole assignment β€” it's a little equality check for two modes, and honestly? iconic. πŸ¦‹

πŸ”₯ RETURN πŸ”₯

True if the modes are equal, false otherwise. Periodt. πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/gpu/drm/drm_modes.c β€” and here's the whole mode squad, bestie: drm_mode_debug_printmodeline(9), drm_mode_create(9), drm_mode_destroy(9), drm_mode_probed_add(9), drm_analog_tv_mode(9), drm_cvt_mode(9), drm_gtf_mode_complex(9), drm_gtf_mode(9), drm_display_mode_from_videomode(9), drm_display_mode_to_videomode(9), drm_bus_flags_from_videomode(9), of_get_drm_display_mode(9), of_get_drm_panel_display_mode(9), drm_mode_set_name(9), drm_mode_vrefresh(9), drm_mode_get_hv_timing(9), drm_mode_set_crtcinfo(9), drm_mode_copy(9), drm_mode_init(9), drm_mode_duplicate(9), drm_mode_match(9), drm_mode_equal_no_clocks(9), drm_mode_equal_no_clocks_no_stereo(9), drm_mode_validate_driver(9), drm_mode_validate_size(9), drm_mode_validate_ycbcr420(9), drm_mode_prune_invalid(9), drm_mode_compare(9), drm_mode_sort(9), drm_connector_list_update(9), drm_mode_parse_command_line_for_connector(9), drm_mode_create_from_cmdline_mode(9), drm_mode_convert_to_umode(9), drm_mode_convert_umode(9), drm_mode_is_420_only(9), drm_mode_is_420_also(9), drm_mode_is_420(9), drm_set_preferred_mode(9).


mwah πŸ’‹ okay bye bestie β€” this lil page comes from the ./drivers/gpu/drm source/version corner, dated October 2026, and it's all about drm_mode_equal(9). 🫢✨

πŸ“¦ where this page comes from