riva_wclut(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a RIVA_HW_INST object πŸ‘‘ (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 πŸ“–

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