GENFB(4)
β¨ GENFB(4) β the manual page for the generic framebuffer console driver, bestie β¨
okay so like, this is genfb from the Kernel Interfaces Manual, and I'm literally obsessed with how much it does with so little. let's get into it π
πΈ NAME πΈ
genfb β generic framebuffer console driver
β¨ SYNOPSIS β¨
genfb* at pci?
genfb* at sbus?
genfb* at intvid? (mac68k)
genfb* at macvid? (mac68k)
wsdisplay* at genfb?
π DESCRIPTION π
okay so the genfb driver is literally your go-to for generic framebuffers that don't have their own native driver yet β it's giving support for the underdogs, fr fr. all it needs are some parameters to describe the framebuffer and an address, and it's good to go. iconic behavior, honestly. π«Ά
π PCI π
when attaching to a pci(4) bus, the driver is configured via device properties, and here's the whole lineup:
width(uint32) β width in pixels. like, how wide is your screen, bestie? πheight(uint32) β height in pixels. vertical vibes only. πstride(uint32) β line size in bytes. the way that stride just keeps everything lined up correctly πdepth(uint32) β bits per pixel. depth check passed, slay. πis_console(bool) β if true,genfbwill try to become the system console. main character energy tbh πaddress(uint32) β bus address of the framebuffer. literally the address, no cap. π
π¦ SBus π¦
when attaching to sbus(4), all those parameters are retrieved from the firmware. not me, not you β the firmware handles it. lowkey convenient, highkey iconic. β¨
πΈ mac68k πΈ
all those parameters are configured with Mac OS, and retrieved from the boot loader. the way that mac68k just does its own thing and we respect it π
π SEE ALSO π
mac68k/intro(4), pci(4), sbus(4), wscons(4), wsdisplay(4)
π BUGS π
okay so there are some things you need to know, and I'm gonna be real with you:
there is no way to change the color map even when the firmware supports it. like, it's giving "we don't do that here" π
thepci(4)bus frontend has only been tested onmacppc,i386, andamd64and requires machine dependent code to pass the properties mentioned above. so far onlymacppc,i386, andamd64provides them. periodt. π
and that's the whole thing, bestie! this page is from Debian, dated July 26, 2019, and it's GENFB(4) β go forth and framebuffer responsibly π§π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2007 Michael Lorenz
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms