sstfb_setcolreg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sstfb_setcolreg πŸ’…

Okay so bestie, this one lives in the Kernel API Manual, section 9 β€” that's the kernel-doc / kernel API corner of the manual-verse, iykyk. And the star of the show is sstfb_setcolreg, which does exactly one iconic thing: it sets a color register. That's it. That's the whole vibe. ✨


✨ NAME ✨

sstfb_setcolreg β€” Optional function. Sets a color register. πŸŽ€


πŸŽ€ SYNOPSIS πŸŽ€

int sstfb_setcolreg (u_int regno , u_int red , u_int green , u_int blue
, u_int transp , struct fb_info *info );

Literally copy that exactly, bestie β€” every u_int, every comma-before-the-newline, all of it. No cap. πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

Six arguments, and every single one is doing its little job:

  • regno β€” the hardware colormap register. This is which register we're messing with. πŸ‘‘
  • red β€” described as the frame buffer colormap structure. Yeah, that's what the page says, don't come for me, I'm just the messenger. πŸ™ˆ
  • green β€” the green value, which can be up to 16 bits wide. So it's giving chunky. πŸ’š
  • blue β€” the blue value, which can be up to 16 bits wide. Same energy. πŸ’™
  • transp β€” if supported, the alpha value, which can be up to 16 bits wide. Conditional icon. πŸ‘€
  • info β€” the frame buffer info structure, aka the whole context bag this thing travels in. πŸŽ’

🌈 SEE ALSO 🌈

Go be nosy, babe, there's lore in these:


Heads up: regno, red, green, blue, transp and info are all written exactly how the page writes them, in exactly that order, and transp only counts if supported β€” that conditional is load-bearing, don't drop it. πŸ’…

And that's the page, bestie! 🫢 This little gem ships out of ./drivers/video/fbdev, version stamped October 2026, and it's filed under the name sstfb_setcolreg(9) β€” so if you ever need to find it again, that's the label. Go set some color registers. Slay. πŸ’–πŸŒΈ

πŸ“¦ where this page comes from