tgafb_setcolreg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME

tgafb_setcolreg β€” okay so this is an optional function bestie, and what it does is set a color register. That's it. That's the gig. πŸ’…


✨ SYNOPSIS

int tgafb_setcolreg (unsigned regno , unsigned red , unsigned green ,
       unsigned blue , unsigned transp , struct fb_info *info );

πŸŽ€ ARGUMENTS

  • regno β€” it's a boolean vibe: 0 means copy local, 1 means get_user function. Not me explaining booleans like they're lore, but here we are. πŸ™ˆ
  • red β€” the frame buffer colormap structure. Iconic. πŸ“
  • green β€” the green value, which can be up to 16 bits wide. Slay. πŸ’š
  • blue β€” the blue value, which can be up to 16 bits wide. Periodt. πŸ’™
  • transp β€” if supported, the alpha value, which can be up to 16 bits wide. Transparency is main character energy, fr fr. 🫢
  • info β€” the frame buffer info structure. The blueprint, the moment, the whole situation. πŸ‘‘
Lowkey important: this whole function is marked optional, so don't come for it if it's not there. It's giving "I'll show up if I feel like it." πŸ’€

🌸 SEE ALSO

Kernel file ./drivers/video/fbdev/tgafb.c, plus these besties:


And that's the whole manual page, no cap! πŸ’–βœ¨

This little masterpiece lives under ./drivers/video/fbdev, and it's dated October 2026 β€” yes, the future said hi. πŸ¦‹

Go forth and set those color registers, bestie. You're literally the main character of the framebuffer. πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from