serial_lsr_in(9)
π serial_lsr_in(9) β like, the manual name is right there bestie
okay so this is a page from the Kernel API Manual, and honestly? it's a little one but it's a whole vibe. sit down, we're talking about serial_lsr_in π«Ά
β¨ NAME β¨
serial_lsr_in β reads the LSR register and preserves those flags across reads, no cap π
π SYNOPSIS π
u16 serial_lsr_in (struct uart_8250_port *up );
π¦ ARGUMENTS π¦
upβ your uart 8250 port, the main character of this whole function π
π DESCRIPTION π
okay so picture this: you read the LSR register, and some of the flags? not preserved across reads. rude, honestly π so serial_lsr_in reads that LSR register and handles saving those non-preserved flags across reads for you, like a true bestie π«Ά
the flags that are not preserved across reads get stored into up->lsr_saved_flags β that's where they live now, periodt π
and what does it give you back? the LSR value, or'ed together with the preserved flags (if any). iconic β¨
π SEE ALSO π
- Kernel file
./drivers/tty/serial/8250/8250.hβ go read it, iykyk ππ
and that's the whole page, bestie!! it's giving short-but-sweet fr fr π this one lives in ./drivers/tty/serial/8250 and it's dated October 2026 β slay, see you next read πβ¨π
π¦ 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