STRUCT IMG_ASCII_LCD_CTX(9)
π struct img_ascii_lcd_ctx(9) π
okay so bestie, welcome to the <pink>Kernel API Manual</pink> β¨ β this one's a little struct page, and it's literally the private-data glow-up for img_ascii_lcd_ctx(9). no cap, it's short, but every field matters π«Ά
πΈ NAME πΈ
struct img_ascii_lcd_ctx β the private data structure, i.e. the lil' bag of secrets this driver keeps to itself π
β¨ SYNOPSIS β¨
here's the whole vibe, verbatim:
struct img_ascii_lcd_ctx {
struct linedisp linedisp;
union {
void __iomem *base;
struct regmap *regmap;
};
u32 offset;
};
π¦ Members π¦
okay so let's meet the cast π
linedispβ the line display structure π your actual display bestie.{unnamed_union}β anonymous π yeah, it's an unnamed union, it has no name, it's mysterious like that. main character energy fr fr.baseβ the base address of the LCD registers π (avoid __iomem *, living inside that anonymous union alongsideregmap).regmapβ the regmap through which the LCD registers are accessed π₯ (astruct regmap *, the other half of the union).offsetβ the offset withinregmapto the start of the LCD registers β (au32, tiny but iconic).
lowkey important:baseandregmapshare an anonymous union, so it's one or the other, not both π keep that in mind bestie.
π SEE ALSO π
go read these next, iykyk π§
- Kernel file
./drivers/auxdisplay/img-ascii-lcd.cstruct img_ascii_lcd_config(9)img_ascii_lcd_probe(9)img_ascii_lcd_remove(9)
and that's the whole page, periodt π
this cutie lives in ./drivers/auxdisplay and the source/version date on it is October 2026 β so go forth and slay, bestie, you got this πΈπ¦π
π¦ 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