fb_match_mode(9)
π fb_match_mode(9)
okay so bestie, welcome to the Kernel API Manual β this one's a little cutie from the framebuffer corner of the kernel and honestly it's giving "find my exact match" energy. It lives in fb_match_mode(9) and it does exactly one thing, but it does it flawlessly β¨
π NAME
fb_match_mode β find a videomode which exactly matches the timings in var π
like, exactly. not "close enough", not "vibes are similar" β we're talking precise timing match, no cap.
πΈ SYNOPSIS
const struct fb_videomode * fb_match_mode (const struct
fb_var_screeninfo *var , struct list_head *head );
π¦ ARGUMENTS
varβ pointer tostruct fb_var_screeninfoπ«Ά this is the var you're trying to match against, the main character of the search nglheadβ pointer tostruct list_headof modelist β¨ the list you're digging through, aka where all the candidate modes are chilling
β RETURN
Returns a struct fb_videomode, or NULL if none found π β so yeah, if your timing match doesn't exist in that list, you get nothing back. brutal but fair.
π SEE ALSO
okay so there's a whole friend group here, they all hang out together:
- 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_find_nearest_mode(9)fb_add_videomode(9)fb_delete_videomode(9)fb_destroy_modelist(9)fb_videomode_to_modelist(9)
π friendly reminder that "exactly matches" means exactly. if you wanted "eh, close enough", go bother fb_find_nearest_mode(9) instead, iykyk.
alright bestie that's the whole page, mwah π β this one's from ./drivers/video/fbdev/core, dated October 2026, and it's fb_match_mode(9) signing off πβ¨π
π¦ 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