fb_videomode_to_modelist(9)
π fb_videomode_to_modelist(9) π
okay bestie, welcome to the kernel API manual β¨ this one's called fb_videomode_to_modelist and it lives in section 9 of the Kernel API Manual β yes we're in kernel land today, buckle up π
πΈ NAME πΈ
fb_videomode_to_modelist β convert mode array to mode list, that's literally the whole vibe π
β¨ SYNOPSIS β¨
void fb_videomode_to_modelist (const struct fb_videomode *modedb , int
num , struct list_head *head );
notice how it returns void? it's giving "I do the work and I don't need a receipt" energy ngl π«Ά
π¦ ARGUMENTS π¦
modedbβ the array ofstruct fb_videomode, i.e. the mode info you're handing over πnumβ how many entries are in that array, count 'em, don't be shy π’headβ thestruct list_headof the modelist, the place where everything's gonna get linked up π
π SEE ALSO π
the kernel file is right here bestie: ./drivers/video/fbdev/core/modedb.c β go read it, iykyk π
and the whole friend group of related calls, all of them, no gatekeeping:
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_match_mode(9)fb_add_videomode(9)fb_delete_videomode(9)fb_destroy_modelist(9)
and that's the page, periodt π
this icon was brought to you by ./drivers/video/fbdev/core, dated October 2026, and stamped with fb_videomode_to_modelist(9) β slay, go convert those modes bestie π¦β¨π
π¦ 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