mux_read(9)
π mux_read(9) β a lil' page from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel, the vibe is immaculate, and somebody gotta move some characters out of a fifo. that's literally this function. welcome to the group chat β¨
πΈ NAME πΈ
mux_read β read chars from the mux fifo, no cap π
β¨ SYNOPSIS β¨
void mux_read (struct uart_port *port );
that's it. that's the whole vibe check. returns nothing (void), takes exactly one thing. periodt π«Ά
π ARGUMENTS π
portβ ptr to theuart_port, bestie. this is your main character right here π
π¦ DESCRIPTION π¦
so what does it actually do? slay, i'll tell you: this reads all available data from the mux's fifo and pushes that data to the tty layer. that's the whole job. no leftovers, no crumbs β all the available data gets read and handed off π₯
it's giving "middle of the pipeline, doing the quiet important work." nobody claps for the fifo reader but likeβ¦ where would we be without her ππ
π SEE ALSO π
okay this is the part where we shout out the whole entourage π
every one of these lives in the kernel file ./drivers/tty/serial/mux.c, and honestly the mux family is huge β obsessed:
get_mux_port_count(9)mux_tx_empty(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_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)
iykyk π§ββοΈ
ngl, this page is short and sweet β which is honestly such a flex. do not go inventing extra behavior for this function, bestie. read the fifo, push to the tty layer, go home π
and that's the whole page!! cutest lil manual entry fr fr π this one lives under ./drivers/tty/serial and it's dated October 2026 β go off, little serial driver era βππ
π¦ 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