drm_mode_equ...ks_no_stereo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_mode_equal_no_clocks_no_stereo(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ β€” today we're doing a vibe check on two display modes and honestly? It's giving "are u the same person" but make it graphics drivers πŸŽ€


🌸 NAME 🌸

drm_mode_equal_no_clocks_no_stereo β€” test modes for equality, no cap πŸ’…


✨ SYNOPSIS ✨

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

🫢 ARGUMENTS 🫢

  • mode1 β€” the first mode, our main character πŸ‘‘
  • mode2 β€” the second mode, the one we're comparing her to πŸ¦‹

πŸ’« DESCRIPTION πŸ’«

So the way this works is so iconic: you check whether mode1 and mode2 are equivalent β€” like, actually the same vibe β€” but don't check the pixel clocks, and don't check the stereo layout. That's it. That's the whole assignment πŸ”₯

Basically it's the chill version of the equality check. Two modes can match here even if their clocks and stereo settings are doing their own little thing πŸ™ˆ


⭐ RETURN ⭐

True if the modes are equal πŸ’– β€” false otherwise πŸ’€ (sorry bestie, them's the breaks)


🌈 SEE ALSO 🌈

Kernel file: ./drivers/gpu/drm/drm_modes.c πŸ“

and the whole friend group, fr fr:


ok that's the whole page bestie, go forth and compare modes responsibly πŸ§šβ€β™€οΈ

mwah πŸ’‹ this came from ./drivers/gpu/drm, dated October 2026 β€” slay, see u next time πŸ‘‘βœ¨

πŸ“¦ where this page comes from