mux_tx_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the uart_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:


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