mux_tx_empty(9)
π mux_tx_empty(9) π
okay so this is a page from the Kernel API Manual, and honestly? she's a little legend. we're talking about mux_tx_empty β the girl who checks if the transmitter fifo is empty. tiny job, huge main character energy. π
β¨ NAME β¨
mux_tx_empty β check if the transmitter fifo is empty. no cap, that's literally the whole gig. π¦
πΈ SYNOPSIS πΈ
unsigned int mux_tx_empty (struct uart_port *port );
π§ ARGUMENTS π§
portβ ptr to theuart_port. like, the actual port we're vibing with. you gotta hand her the pointer, bestie, she can't read minds. π
π₯ DESCRIPTION π₯
so what she does is: this function tests if the transmitter fifo for the port described by 'port' is empty. that's the vibe check. π«Ά
and then:
- if it is empty β this function should return
TIOCSER_TEMTβ¨ (slay, the buffer's clear) - otherwise β return
0π (nope, still stuff in there)
that's it. that's the whole function. iconic behaviour, honestly. lowkey obsessed with how simple she is. π
ngl, "should return" is doing some heavy lifting here β that's the spec talking, not a promise the universe made to you. π
π SEE ALSO π
kernel file ./drivers/tty/serial/mux.c β and the whole mux friend group, fr fr:
get_mux_port_count(9)mux_set_mctrl(9)mux_get_mctrl(9)mux_stop_tx(9)mux_start_tx(9)mux_stop_rx(9)mux_break_ctl(9)mux_write(9)mux_read(9)mux_startup(9)mux_shutdown(9)mux_set_termios(9)mux_type(9)mux_release_port(9)mux_request_port(9)mux_config_port(9)mux_verify_port(9)mux_poll(9)mux_probe(9)mux_init(9)mux_exit(9)
and that's the whole page, bestie!! πβ¨ she lives in ./drivers/tty/serial and this cutie is dated October 2026 β so yeah, go read the whole mux squad, iykyk ππΈπ¦π
π¦ 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