xxxfb_fillrect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xxxfb_fillrect β€” a Kernel API Manual moment πŸ’–

ok so you're in the Kernel API Manual (yes, that's the manual this page lives in, hi bestie 🫢) and you clicked on xxxfb_fillrect(9). Buckle up, this one's actually kind of a big deal in the framebuffer world.

✨ NAME ✨

xxxfb_fillrect β€” a REQUIRED function, no cap. You can use the generic routines if your hardware is non-accelerated and it's packed-pixel based, bestie, the kernel's got your back there. What does it do? It draws a rectangle on the screen. Iconic. Simple. Essential. πŸ’…

✨ SYNOPSIS ✨

void xxxfb_fillrect (struct fb_info *p , const struct fb_fillrect
*region );

✨ ARGUMENTS ✨

  • p β€” literally -- undescribed -- in the docs 😭 the kernel devs said "you know who it is" and moved on. It's a struct fb_info *, that much we know.
  • region β€” the structure that represents the rectangular region we wanna draw to. That's the whole vibe. πŸŽ€

✨ DESCRIPTION ✨

So, this drawing operation places/removes a retangle (rectangle, bestie, that's how it's spelled in the source, I'm just the messenger) on the screen. Whether it places or removes depends on the rastering operation, and it uses the value of color, which is hanging out in the current color depth format. So yeah, the color's already formatted for whatever depth you're running β€” no conversions needed on your end. Slay. 🌈

✨ SEE ALSO ✨

Go look at the kernel file ./drivers/video/fbdev/skeletonfb.c β€” that's the main character right there πŸ‘‘

Then the whole friend group:

and yes, xxxfb_suspend(9) and xxxfb_resume(9) are listed twice β€” the original page does that too, so we're keeping the duplicate energy fr fr πŸ™ˆπŸ’€ (no erasure on my watch).


k bye bestie, this page came from the ./drivers/video/fbdev source tree, dated October 2026 β€” mwah πŸ’‹ go fill some rectangles, you're gonna ate πŸ¦‹βœ¨

πŸ“¦ where this page comes from