STRUCT IMG_ASCII_LCD_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈 (a void __iomem *, living inside that anonymous union alongside regmap).
  • regmap β€” the regmap through which the LCD registers are accessed πŸ”₯ (a struct regmap *, the other half of the union).
  • offset β€” the offset within regmap to the start of the LCD registers ⭐ (a u32, tiny but iconic).
lowkey important: base and regmap share an anonymous union, so it's one or the other, not both πŸ’€ keep that in mind bestie.

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, iykyk 🧚


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