STRUCT LINEDISP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct linedisp(9) 🌸

okay bestie so you're deep in the Kernel API Manual and you just bumped into struct linedisp β€” the private data structure for a character line display. she's private, she's structured, she's lowkey the whole personality of your little character display. let's get into it πŸ’…


✨ NAME ✨

struct linedisp β€” the private data structure that holds everything for a character line display. like, the whole backstage dressing room πŸŽ€


✨ SYNOPSIS ✨

struct linedisp {
    struct device dev;
    struct timer_list timer;
    const struct linedisp_ops *ops;
    struct linedisp_map *map;
    char *buf;
    char *message;
    unsigned int num_chars;
    unsigned int message_len;
    unsigned int scroll_pos;
    unsigned int scroll_rate;
    unsigned int id;
 };
no cap, that's character-for-character what's in the header. do not touch, do not "clean up" the spacing, just vibe with it πŸ™ˆ

✨ Members ✨

  • dev β€” the line display device herself. the actual device struct, main character energy ⭐
  • timer β€” the timer that makes the scrolling happen. yes, the scroll is timer-driven. she moves on her own schedule πŸ•
  • ops β€” the character line display operations. the function table, the whole toolkit, the iykyk 🀝
  • buf β€” pointer to the buffer holding the string that's currently on display. what you see rn πŸ’–
  • message β€” the full message you want to display or scroll across the display. the entire thing, not just the visible slice ✨
  • num_chars β€” how many characters can actually fit on the display. the size of the window, the fit check πŸŽ€
  • message_len β€” the length of the message string. how long message actually is πŸ¦‹
  • scroll_pos β€” index of the first character of message that's currently displayed. where in the message we are rn, like a little bookmark πŸ”–
  • scroll_rate β€” the scroll interval, measured in jiffies. yep, jiffies. that's the unit. that's the vibe 🌈
  • id β€” the instance id of this display. so if you've got multiples, you know which one is which πŸ‘‘

✨ SEE ALSO ✨

  • Kernel file ./drivers/auxdisplay/line-display.h enum β€” go read it, fr fr
  • linedisp_map_type(9)
  • struct linedisp_map(9)
  • struct linedisp_ops(9)

okay that's the whole page, you ate that 🫢 go forth and scroll your little displays responsibly πŸ’œ

mwah πŸ’‹ β€” with love from ./drivers/auxdisplay, dated October 2026 (yes, the future, don't ask) 🌸✨

πŸ“¦ where this page comes from