mac_var_to_vmode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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