fb_create_modedb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fb_create_modedb(9) πŸ’–

ok so this is a kernel API manual page, section 9, all about fb_create_modedb β€” yes bestie, we're in the fb_create_modedb(9) chapter of the Kernel API Manual and it's literally about making a video mode database. slay.


🌸 NAME 🌸

fb_create_modedb β€” create video mode database πŸŽ€

like, it builds the mode db. that's the whole vibe.


✨ SYNOPSIS ✨

struct fb_videomode * fb_create_modedb (unsigned char *edid , int
*dbsize , const struct fb_monspecs *specs );

that's the signature, copy it exactly, don't come for me about the line wrap β€” that's how it ships πŸ’…


🫢 ARGUMENTS 🫢

  • edid β€” the EDID data, bestie. this is the raw goods.
  • dbsize β€” database size. it's an int * and it comes back holding the length of the database (see RETURN below, iykyk).
  • specs β€” monitor specifications, and yes it may be NULL β€” no monitor specs? totally fine, still valid.

πŸ‘‘ RETURN πŸ‘‘

returns a struct fb_videomode, and dbsize contains the length of the database. so you get the modes and the count. two-for-one, we love to see it πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

ok so what this function actually does: it builds a mode database using the contents of the EDID data. that's it, that's the whole thing. EDID in, mode database out. iconic behavior honestly πŸ’œ


🌈 SEE ALSO 🌈

all the sibling functions, the whole friend group 🧚


ngl this page is short and I respect that β€” fb_create_modedb said "my job is one sentence" and left. periodt. πŸ’…

and that's the page!! this one's filed under ./drivers/video/fbdev/core, dated October 2026, and it's the fb_create_modedb(9) manual page from the Kernel API Manual β€” mwah, go build some mode databases bestie πŸ“πŸ’–βœ¨

πŸ“¦ where this page comes from