cg3_setcolreg(9)
Bestie, welcome to the cg3_setcolreg(9) page from the Kernel API Manual β¨ This one is an Optional function whose whole job is setting a color register. Letβs get into it π
π NAME
cg3_setcolreg β Optional function. Sets a color register.
β¨ SYNOPSIS
int cg3_setcolreg (unsigned regno , unsigned red , unsigned green ,
unsigned blue , unsigned transp , struct fb_info *info );
π ARGUMENTS
Okay so hereβs the cast, and yes, regnoβs description is doing the absolute most:
regnoβ boolean, fr:0copy local,1get_user functionredβ frame buffer colormap structuregreenβ The green value which can be up to 16 bits wideblueβ The blue value which can be up to 16 bits wide.transpβ If supported the alpha value which can be up to 16 bits wide.infoβ frame buffer info structure
π¦ DESCRIPTION
Okay so the tea β: the cg3 palette is loaded with 4 color values at each time, so you end up with: (rgb)(r), (gb)(rg), (b)(rgb), and so on. Itβs giving palette Tetris, honestly. We keep a sw copy of the hw cmap to assist us in this esoteric loading procedure β iconic behavior, I know π
π SEE ALSO
- Kernel file
./drivers/video/fbdev/cg3.c cg3_blank(9)
XOXO, your cg3_setcolreg(9) bestie π β source/version: ./drivers/video/fbdev, dated October 2026 π
π¦ 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