uart_update_timeout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« uart_update_timeout(9) πŸ’«

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're being official today πŸ’…. This page is all about uart_update_timeout(9), and it's honestly such a small function with such a big job. Let's get into it πŸŽ€


✨ NAME ✨

uart_update_timeout β€” update per-port frame timing information 🌸

Like, it refreshes the timing deets for one serial port. Not all of them. That one. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void uart_update_timeout (struct uart_port *port , unsigned int cflag ,
       unsigned int baud );

Returns void, so no "did it work" energy β€” it just does the thing, no cap. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” the uart_port structure describing the port 🏠. This is the star of the show, the main character, the port itself.
  • cflag β€” a termios cflag value πŸ”§. Think of it as the little settings receipt for the port.
  • baud β€” the speed of the port 🏎️. Zoom zoom.

πŸ”₯ DESCRIPTION πŸ”₯

So what does it actually do? It sets the port's frame timing information β€” the very info that the FIFO timeout value gets derived from. The way that one struct field feeds another whole calculation is lowkey iconic πŸ’€βœ¨.

And the cflag value? It should reflect the actual hardware settings, because the number of bits, parity, stop bits and baud rate all get taken into account right here. All of it. It's giving "attention to detail" and honestly obsessed πŸ§šπŸ’–.

Locking: the caller is expected to take port->lock πŸ”’. Not optional, not a vibe suggestion. Grab the lock, bestie.

🌈 SEE ALSO 🌈

Kernel file ./drivers/tty/serial/serial_core.c β€” and a whole friend group of related functions, all of them slay in their own way 🫢:


okay and for the little sign-off at the bottom: this page lives under ./drivers/tty/serial, and it's dated October 2026 πŸ“…. That's the source and the version and the date, all cute and accounted for. bye bestie, go update those timeouts πŸ’–β­πŸ‘‘

πŸ“¦ where this page comes from