uart_xmit_advance(9)
π uart_xmit_advance β a Kernel API Manual moment β¨
okay bestie, so this is a page from the Kernel API Manual, and it's literally about uart_xmit_advance. yes that's a mouthful, no I will not be shortening it, we respect her full name π
πΈ NAME πΈ
uart_xmit_advance β advance the xmit buffer and account for the chars you just Tx'ed, periodt π
π¦ SYNOPSIS π¦
void uart_xmit_advance (struct uart_port *up , unsigned int chars );
that's the whole vibe check right there, no cap π
β¨ ARGUMENTS β¨
upβ theuart_portstructure that describes the port. she's the main character of this whole operation πcharsβ the number of characters sent. like, actually sent. keep track, bestie π
π₯ DESCRIPTION π₯
so what does she do? this function advances the tail of the circular xmit buffer by the number of chars transmitted β literally just nudging the tail forward by however many chars went out π§
and she also handles the accounting of transmitted bytes, which get tracked into up's icount.tx. so like, not only does she move the buffer along, she keeps the receipts. obsessed π
ngl it's giving "quietly doing two jobs at once and never complaining" energy. icon behavior fr fr β¨
π SEE ALSO π
okay this is the friend group, everybody say hi π β¨
- Kernel file
./include/linux/serial_core.hstructuart_ops(9) uart_port_set_cons(9)uart_port_lock(9)uart_port_lock_irq(9)uart_port_lock_irqsave(9)uart_port_trylock(9)uart_port_trylock_irqsave(9)uart_port_unlock(9)uart_port_unlock_irq(9)uart_port_unlock_irqrestore(9)- enum
uart_pm_state(9) - enum
UART_TX_FLAGS(9) uart_port_tx_limited(9)uart_port_tx_limited_flags(9)uart_port_tx(9)uart_port_tx_flags(9)
like I said. big friend group. all iconic, all linked above ππ«Ά
π reminder bestie: this is kernel API territory, so treat the buffer math with respect β she's advancing real state, not vibes πΈ
mwah, that's the page!! sourced straight from ./include/linux, dated October 2026, and brought to you by the uart_xmit_advance(9) girlies ππ see u in the next manpage, bestie β¨π¦
π¦ 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