riva_wclut(9)
π riva_wclut(9) β the Kernel API Manual, bestie edition β¨
okay so this is riva_wclut, a page straight out of the Kernel API Manual, and honestly? she's tiny but she's mighty π
β¨ NAME β¨
riva_wclut β set CLUT entry π¨
πΈ SYNOPSIS πΈ
void riva_wclut (RIVA_HW_INST *chip , unsigned char regnum , unsigned char red , unsigned char green , unsigned char blue );
like, that's the whole call. five args, no cap. π«Ά
π¦ ARGUMENTS π¦
chipβ pointer to aRIVA_HW_INSTobject π (this is the main character, the whole riva hardware vibe)regnumβ the register number π (which slot we're messing with)redβ the red component πΉgreenβ the green component πblueβ the blue component π¦
all three color ones are unsigned char, so keep 'em in range, bestie π
β DESCRIPTION β
She sets color register regnum. That's it. That's the whole job. Lowkey iconic for how small she is π
CALLED FROM: rivafb_setcolreg β so that's the queen who rings her up whenever a color register needs setting πβ¨
π SEE ALSO π
Kernel file ./drivers/video/fbdev/riva/fbdev.c β go read the source, iykyk π
rivafb_load_cursor_image(9)riva_rclut(9)riva_save_state(9)riva_load_state(9)riva_load_video_mode(9)rivafb_do_maximize(9)riva_get_cmap_len(9)rivafb_pan_display(9)rivafb_setcolreg(9)rivafb_fillrect(9)rivafb_copyarea(9)rivafb_imageblit(9)rivafb_cursor(9)
that's the whole friend group fr fr π«Άπ
this page lives in ./drivers/video/fbdev/riva, dated October 2026 β mwah, go set some CLUT entries, you're gonna slay πβ¨π
π¦ 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