STRUCT FBTFT_PAR(9)
π NAME π
struct fbtft_par β the main FBTFT data structure, aka the main character of this whole show π
(this one lives in the Kernel API Manual, bestie β yes, that's the vibe of the manual we're in rn β¨)
πΈ SYNOPSIS πΈ
okay so here's the whole struct, every last field, no cap, not skipping a single one:
struct fbtft_par {
struct spi_device *spi;
struct platform_device *pdev;
struct fb_info *info;
struct fbtft_platform_data *pdata;
u16 *ssbuf;
u32 pseudo_palette[16];
struct {
void *buf;
size_t len;
} txbuf;
u8 *buf;
u8 startbyte;
struct fbtft_ops fbtftops;
spinlock_t dirty_lock;
unsigned int dirty_lines_start;
unsigned int dirty_lines_end;
struct {
struct gpio_desc *reset;
struct gpio_desc *dc;
struct gpio_desc *rd;
struct gpio_desc *wr;
struct gpio_desc *latch;
struct gpio_desc *cs;
struct gpio_desc *db[16];
struct gpio_desc *led[16];
struct gpio_desc *aux[16];
} gpio;
const s16 *init_sequence;
struct {
struct mutex lock;
u32 *curves;
int num_values;
int num_curves;
} gamma;
unsigned long debug;
bool first_update_done;
ktime_t update_time;
bool bgr;
void *extra;
bool polarity;
};
π¦ Members π¦
a lil roll call of everyone invited to the function, iykyk π
- the pointers squad β
spi,pdev,info,pdata,ssbuf, andpseudo_palette[16]π - the txbuf duo β a nested struct holding
bufandlen(void *buf;andsize_t len;) π - the solo crew β
buf,startbyte,fbtftops,init_sequence,debug,first_update_done,update_time,bgr,extra, andpolarityβ¨ - the dirty girls β
dirty_lock(aspinlock_t), plusdirty_lines_startanddirty_lines_end(bothunsigned int) π₯ - the
gpioblock βreset,dc,rd,wr,latch,cs, and then the big arrays:db[16],led[16],aux[16]π«Ά - the
gammablock βlock(astruct mutex),curves(au32 *),num_values, andnum_curvesπ
β¨ Description β¨
This structure holds all relevant data to operate the display. literally all of it, it's giving "one struct to rule them all" π
See sourcefile for documentation since nested structs is not supported by kernel-doc. yeah π kernel-doc said "not me being unable to handle nested structs" so bestie, the sourcefile is where the real lore lives β go read it fr fr π
π SEE ALSO π
Kernel file ./drivers/staging/fbtft/fbtft.h struct fbtft_gpio(9), struct fbtft_ops(9), struct fbtft_display(9), struct fbtft_platform_data(9) β the whole friend group, go say hi πΈ
and that's the page bestie π sign-off time: this lil gem comes from ./drivers/staging/fbtft, dated October 2026 β periodt π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms