Expand description
Framebuffer geometry, read from sysfs.
The classic way to ask fbdev about itself is FBIOGET_VSCREENINFO and
FBIOGET_FSCREENINFO. Everything those return that matters here is also in
/sys/class/graphics/fbN/, and reading files instead of issuing ioctls means
no libc dependency, no unsafe, and — the part that actually pays — parsing
that is testable on a machine with no framebuffer.
What sysfs does not expose is the colour bitfield layout, so the byte order
within a pixel is assumed rather than read. See PixelLayout.
Structs§
- FbInfo
- The geometry of a framebuffer.
Enums§
- FbInfo
Error - Why a framebuffer’s geometry could not be understood.
- Pixel
Layout - How pixels are laid out in the mapped framebuffer.