riva_rclut(9)
π riva_rclut(9) β read from CLUT register
okay bestie, welcome to riva_rclut(9), straight out of the Kernel API Manual β¨ this one is a tiny little function but she is doing her job and honestly? we respect her for it π«Ά
π NAME
riva_rclut β read from CLUT register π
β¨ SYNOPSIS
void riva_rclut (RIVA_HW_INST *chip , unsigned char regnum , unsigned
char *red , unsigned char *green , unsigned char *blue );
like yes, she's void β she doesn't return anything, she just does the thing and moves on, main character energy honestly π
π¦ ARGUMENTS
chipβ pointer to aRIVA_HW_INSTobject πΈ that's your hardware-instance bestie, she holds the whole viberegnumβ register number π’ the specific color register you're visitingredβ red component β€οΈ (the red goes in here)greenβ green component π (and the green goes in here)blueβ blue component π (and the blue goes in here, we love a full set)
π DESCRIPTION
So the way this works is she reads red, green, and blue from color register regnum π¨ like she goes to that one register and comes back with the whole RGB trio, no cap. Your three pointer args (red, green, blue) are where those values land, so they better be valid pointers, iykyk π
CALLED FROM: rivafb_setcolreg β (that's her one caller, her ride-or-die, they're literally inseparable)
π SEE ALSO
Kernel file ./drivers/video/fbdev/riva/fbdev.c π β go read the source, it ate
rivafb_load_cursor_image(9)riva_wclut(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)
ngl riva_wclut(9) is literally her sister function β rclut reads, wclut writes, they're giving complementary icons fr fr π
π and that's the whole page!! brought to you by the fine folks over at ./drivers/video/fbdev/riva, dated October 2026, in the Kernel API Manual β slay, go read riva_wclut(9) next, 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