fb_find_nearest_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to fb_find_nearest_mode(9) β€” yes, the Kernel API Manual one 🫢. We're finding the closest videomode and honestly the vibes are immaculate βœ¨πŸ’–.

✨ NAME ✨

fb_find_nearest_mode β€” find closest videomode 🎯

πŸŽ€ SYNOPSIS πŸŽ€

const struct fb_videomode * fb_find_nearest_mode (const struct
fb_videomode *mode , struct list_head *head );

🌸 ARGUMENTS 🌸

  • mode β€” pointer to struct fb_videomode πŸ¦‹
  • head β€” pointer to modelist 🌈

πŸ’… DESCRIPTION πŸ’…

okay so it finds the best matching videomode, smaller or greater in dimension β€” both directions are valid, bestie πŸ”₯. If more than 1 videomode is found, it will return the videomode with the closest refresh rate. That's the tiebreaker, periodt πŸ’–.

πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad is here, no cap πŸ˜­πŸ‘―:

with love from the source/version ./drivers/video/fbdev/core 🌸, dated October 2026 πŸŽ€, and this has been your fb_find_nearest_mode(9) page πŸ‘‘πŸ’–

πŸ“¦ where this page comes from