STRUCT SIFIVE_SERIAL_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct sifive_serial_port(9) πŸ’–

okay so this is a page from the Kernel API Manual, and it's literally all about struct sifive_serial_port β€” bestie, it's the driver-specific data extension to struct uart_port. like, the uart_port gets to bring a whole extra little bag of snacks with it πŸŽ€


✨ NAME ✨

struct sifive_serial_port β€” driver-specific data extension to struct uart_port πŸ’…


🌸 SYNOPSIS 🌸

struct sifive_serial_port {
    struct uart_port        port;
    struct device           *dev;
    unsigned char           ier;
    unsigned long           baud_rate;
    struct clk              *clk;
    struct notifier_block   clk_notifier;
    bool console_line_ended;
 };

πŸ¦‹ Members πŸ¦‹

  • port β€” the struct uart_port that lives embedded right inside this struct 🫢
  • dev β€” a struct device *, no cap
  • ier β€” a shadowed copy of the interrupt enable register ✨ (a shadow copy, like it's cosplaying the real register)
  • baud_rate β€” the UART serial line rate, e.g. 115200 baud πŸ”₯
  • clk β€” a reference to this device's clock ⭐
  • clk_notifier β€” the clock rate change notifier, for when the upstream clock changes its whole vibe 😭
  • console_line_ended β€” tells you the console line is fully written, i.e. wrap it up, the line is done πŸ‘‘

πŸ’œ Description πŸ’œ

Configuration data specific to this SiFive UART. that's it, that's the whole description β€” it's giving "confident, concise, main character energy" πŸ’€βœ¨


🌈 SEE ALSO 🌈

Kernel file ./drivers/tty/serial/sifive.c β€” and the whole friend group:


and that's the whole page, bestie, you ate that πŸ“πŸ’– this gem came out of ./drivers/tty/serial and it's dated October 2026, so yeah β€” go forth and read your serial driver source, ily, mwah πŸ’…βœ¨πŸ§š

πŸ“¦ where this page comes from