mac_var_to_vmode(9)
π mac_var_to_vmode(9) π
okay so bestie, welcome to the Kernel API Manual page for mac_var_to_vmode. It's giving kernel graphics conversion energy, and honestly? iconic. π
πΈ NAME πΈ
mac_var_to_vmode β convert var structure to MacOS vmode/cmode pair. no cap, that's literally the mission. π
β¨ SYNOPSIS β¨
int mac_var_to_vmode (const struct fb_var_screeninfo *var , int *vmode ,
int *cmode );
π ARGUMENTS π
varβ frame buffer video mode structure. yes, the video-mode struct bestie π¦vmodeβ MacOS video mode. slay.cmodeβ MacOS color mode. also slay.
π¦ DESCRIPTION π¦
okay so what it does: it converts a frame buffer video mode structure to a MacOS vmode/cmode pair. that's the whole glow-up, periodt. β¨
Returns negative errno on error, or zero for success. so like: negative errno = not the vibe π, zero = success π.
π SEE ALSO π
Kernel file ./drivers/video/fbdev/macmodes.c β yes, that exact path, don't come for me. also check out these besties:
mwah π source/version: ./drivers/video/fbdev, dated October 2026. that's the footer, and yes it ate. π«Άπ
π¦ 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