pm2fb_setcolreg(9)
β¨ 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;0is copy local,1is 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 π
- Kernel file
./drivers/video/fbdev/pm2fb.c pm2fb_set_par(9)pm2fb_pan_display(9)pm2fb_blank(9)pm2fb_probe(9)pm2fb_remove(9)
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
- 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