fb_find_nearest_mode(9)
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 tostruct 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 ππ―:
- Kernel file:
./drivers/video/fbdev/core/modedb.cπ fb_try_mode(9)fb_find_mode(9)fb_var_to_videomode(9)fb_videomode_to_var(9)fb_mode_is_equal(9)fb_find_best_mode(9)fb_match_mode(9)fb_add_videomode(9)fb_delete_videomode(9)fb_destroy_modelist(9)fb_videomode_to_modelist(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms