set_con2fb_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ set_con2fb_map πŸ’…

okay bestie, so this one's from the Kernel API Manual β€” it's set_con2fb_map, and it's literally the glow-up artist that pairs a virtual console with a frame buffer device πŸŽ€


🌸 NAME 🌸

set_con2fb_map β€” map console to frame buffer device


πŸ¦‹ SYNOPSIS πŸ¦‹

int set_con2fb_map (int unit , int newidx , int user );

πŸ’– ARGUMENTS πŸ’–

  • unit β€” the virtual console number you're mapping (which console are we matching up?)
  • newidx β€” the frame buffer index you want that virtual console mapped to
  • user β€” user request

πŸ”₯ DESCRIPTION πŸ”₯

So basically: it maps a virtual console unit to a frame buffer device newidx. Matchmaker mode, no cap πŸ’…

⚠️ Important, bestie, do not skip this: this should be called with the console lock held. Like, held held. Lock it before you call, okay? 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/video/fbdev/core/fbcon.c β€” go read it, iykyk πŸ‘‘


that's the whole page, short and iconic, periodt 🫢 β€” brought to you by ./drivers/video/fbdev/core, October 2026, set_con2fb_map(9) edition, mwah πŸ’‹

πŸ“¦ where this page comes from