mac_find_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mac_find_mode β€” find a video mode πŸ’…

okay so we're deep in the kernel API manual and this page is mac_find_mode(9), bestie. it lives in the (9) section, aka the kernel API corner of the manual, and it's literally about hunting down a video mode. that's the whole vibe check. πŸ¦‹


✨ SYNOPSIS ✨

int mac_find_mode (struct fb_var_screeninfo *var , struct fb_info *info
, const char *mode_option , unsigned int default_bpp );

look at her. four args, one int return, no cap. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • var β€” the frame buffer user defined part of display. yeah that's the display bits you get to poke at πŸ’–
  • info β€” the frame buffer info structure. the main-character struct fr fr πŸ‘‘
  • mode_option β€” the video mode name (see mac_modedb[]). that's the name you're looking up, iykyk πŸ”₯
  • default_bpp β€” default color depth, in bits per pixel. the fallback color situation 🌈

🌸 DESCRIPTION 🌸

so the tea is this: it finds a suitable video mode. it tries to set the mode specified by mode_option. and if the name of the wanted mode begins with will fall back to the standard video mode database. (yeah the original sentence is a little unhinged, but that's literally what it says, so we're keeping it exactly like that πŸ™ˆ β€” no editing, no guessing, periodt.)


⭐ NOTE ⭐

the function is marked as __init and can only be used during system boot. like, boot-time only. not later. don't come for her after boot, she's literally gone πŸ’€

returns the error code from fb_find_mode (see the fb_find_mode function). 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

all the sibling functions, go read them, they ate ✨


and that's the page, bestie πŸŽ€ this one came from ./drivers/video/fbdev, dated October 2026, and her manual name is mac_find_mode(9) β€” iconic, no notes, mwah πŸ’œ

πŸ“¦ where this page comes from