STRUCT LINEDISP(9)
πΈ 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 longmessageactually is π¦scroll_posβ index of the first character ofmessagethat'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.henumβ 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
- 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