STRUCT FBTFT_DISPLAY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct fbtft_display(9) β€” like, the whole vibe of your display, in one struct

okay bestie, so this is from the Kernel API Manual bestie, and it's the struct that describes the display properties. iconic. it's the little data bundle that tells everyone what your screen actually is.


✨ NAME ✨

struct fbtft_display β€” Describes the display properties. that's it, that's the whole job πŸŽ€


🌸 SYNOPSIS 🌸

struct fbtft_display {
    unsigned int width;
    unsigned int height;
    unsigned int regwidth;
    unsigned int buswidth;
    unsigned int backlight;
    struct fbtft_ops fbtftops;
    unsigned int bpp;
    unsigned int fps;
    int txbuflen;
    const s16 *init_sequence;
    char *gamma;
    int gamma_num;
    int gamma_len;
    unsigned long debug;
 };

no cap, that's the whole struct. every field, verbatim, we do not skip πŸ’…


🫢 Members 🫢

okay this is the part where we meet the cast. main character energy, one field at a time:

  • width β€” Width of display in pixels. how wide your lil screen is, in pixels.
  • height β€” Height of display in pixels. and how tall. vertical bestie.
  • regwidth β€” LCD Controller Register width in bits. the register width of the LCD controller, measured in bits.
  • buswidth β€” Display interface bus width in bits. the bus width of the display interface, also in bits. bits bits bits.
  • backlight β€” Backlight type. what kind of backlight situation we're dealing with.
  • fbtftops β€” FBTFT operations provided by driver or device (platform_data). the ops that come from the driver, or from the device via platform_data.
  • bpp β€” Bits per pixel. bits per pixel, obviously, slay.
  • fps β€” Frames per second. frames per second. smoothness. πŸ”₯
  • txbuflen β€” Size of transmit buffer. how big the transmit buffer is.
  • init_sequence β€” Pointer to LCD initialization array. points at the init array for the LCD. this one's the special one, see below πŸ‘€
  • gamma β€” String representation of Gamma curve(s). the gamma curves, but as a string.
  • gamma_num β€” Number of Gamma curves. how many gamma curves there are.
  • gamma_len β€” Number of values per Gamma curve. how many values each gamma curve holds.
  • debug β€” Initial debug value. the debug value you start out with.

πŸ¦‹ Description πŸ¦‹

so here's the tea, and it's a small tea: This structure is not stored by FBTFT except for init_sequence.

literally that's it. FBTFT doesn't hang onto this struct β€” the one and only exception is init_sequence. everything else is a vibe that passes through πŸ™ˆ


🌈 SEE ALSO 🌈

go look at the kernel file ./drivers/staging/fbtft/fbtft.h β€” that's where the real lore lives. also check out the sibling structs, they're all linked up:

  • struct fbtft_gpio(9)
  • struct fbtft_ops(9)
  • struct fbtft_platform_data(9)
  • struct fbtft_par(9)

ok tiny reminder bestie: this struct isn't kept around by FBTFT (except for init_sequence), so don't go assuming it sticks around. πŸ’€

and that's the page! brought to you by ./drivers/staging/fbtft, dated October 2026, in the struct fbtft_display(9) era ✨ go forth and describe your displays, queen πŸ‘‘πŸ’–

πŸ“¦ where this page comes from