mac_find_mode(9)
π 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 (seemac_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 π¦
- kernel file
./drivers/video/fbdev/macmodes.c mac_vmode_to_var(9)mac_var_to_vmode(9)mac_map_monitor_sense(9)
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
- 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