pm2fb_setcolreg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the Kernel API Manual page for pm2fb_setcolreg(9), and it's literally here to say: pm2fb_setcolreg β€” sets a color register. that's the name, periodt. πŸŽ€

🌸 SYNOPSIS 🌸

bestie, here's the exact signature, spacing and all:

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

πŸŽ€ ARGUMENTS πŸŽ€

  • regno β€” boolean; 0 is copy local, 1 is get_user function.
  • red β€” the page calls this a frame buffer colormap structure (yep, that's the description, keeping it 100).
  • 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 πŸ¦‹

so this function sets a single color register. the values supplied have a 16 bit magnitude, and that magnitude needs to be scaled in this function for the hardware β€” that's the whole gig, no cap. the page also says it's pretty much a direct lift from tdfxfb.c (iconic, honestly). 🫢

returns a negative errno on error, or 0 on success. slay. ✨

🌈 SEE ALSO 🌈

like, go read the kernel file and the sibling functions if you want the full lore πŸ’–πŸ‘‘

okay bye bestie, this page's source/version is ./drivers/video/fbdev and the date is October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from