rivafb_fillrect(9)
π rivafb_fillrect(9) β the kernel API manual, bestie edition π
okay so this is rivafb_fillrect, straight out of the rivafb corner of the kernel API manual, and it's genuinely one of the most satisfying little functions ever. it fills stuff with color. hardware-accelerated color. are we obsessed? yes.
β¨ NAME β¨
rivafb_fillrect β hardware accelerated color fill function π₯
like, it paints a whole region of your framebuffer in one solid color, and the hardware does the heavy lifting. no cap.
β¨ SYNOPSIS β¨
void rivafb_fillrect (struct fb_info *info , const struct fb_fillrect
*rect );
that's the whole signature, keep it exactly like that π«Ά
β¨ ARGUMENTS β¨
infoβ a pointer to thefb_infostructure. yes, thatfb_info, the big one, the main character πrectβ a pointer to thefb_fillrectstructure. this one isconst, meaning don't you dare touch it π
β¨ DESCRIPTION β¨
so here's the vibe: this function fills up a region of framebuffer memory with a solid color, and it gives you a choice of two different ROP's β either copy or invert. that's it, that's the whole gig. iconic behavior, honestly π
CALLED FROM: framebuffer hook πΈ
ngl, "framebuffer hook" is literally the whole labeling here β that's where this thing gets invoked, iykyk.
π SEE ALSO π
the source of truth, the kernel file itself:
Kernel file ./drivers/video/fbdev/riva/fbdev.c
and the whole friend group of related functions, all listed, all loved:
rivafb_load_cursor_image(9)riva_wclut(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_copyarea(9)rivafb_imageblit(9)rivafb_cursor(9)
go read them all, they're slay β¨π¦
and that's the page, bestie π β brought to you from ./drivers/video/fbdev/riva, dated October 2026, kernel API manual energy, periodt. πβ
π¦ 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