rivafb_fillrect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the fb_info structure. yes, that fb_info, the big one, the main character πŸ“‹
  • rect β€” a pointer to the fb_fillrect structure. this one is const, 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:

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