drm_mode_validate_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay bestie, we're in the Kernel API Manual and this page is drm_mode_validate_size(9) β€” the one whose whole job is to make sure modes adhere to size constraints. no cap. ✨


πŸŽ€ SYNOPSIS πŸŽ€

enum drm_mode_status drm_mode_validate_size (const struct
       drm_display_mode *mode , int maxX , int maxY );

🌸 ARGUMENTS 🌸

  • mode β€” the mode to check. like, put it through the vibe check, bestie. πŸ’…
  • maxX β€” maximum width. the width ceiling, fr fr.
  • maxY β€” maximum height. the height ceiling, periodt. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this function is a helper β€” it can be used to validate modes against size limitations of the DRM device/connector. If a mode is too big, its status member is updated with the appropriate validation failure code.

The list itself is not changed. important! no list mutating, bestie β€” it's giving read-only energy. 🫢


✨ RETURN ✨

The mode status. that's it, that's the return. 😌


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/gpu/drm/drm_modes.c


source/version: ./drivers/gpu/drm Β· dated October 2026 Β· page: drm_mode_validate_size(9) β€” mwah, love u, go validate those modes responsibly πŸ’‹πŸŽ€

πŸ“¦ where this page comes from