cg3_setcolreg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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: 0 copy local, 1 get_user function
  • red β€” frame buffer colormap structure
  • green β€” The green value which can be up to 16 bits wide
  • blue β€” 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


XOXO, your cg3_setcolreg(9) bestie πŸ’œ β€” source/version: ./drivers/video/fbdev, dated October 2026 πŸŽ€

πŸ“¦ where this page comes from