uart_match_port(9)
π uart_match_port(9) β like, the Kernel API Manual moment of "are you two the same port or not"
okay so bestie, buckle up π this one's from the Kernel API Manual, and it's a tiny little function with a huge "wait, are you actually the same person?" energy. It's called uart_match_port and honestly? It ate. β¨
πΈ NAME πΈ
uart_match_port β are the two ports equivalent? π like, literally, is it the same port or not, no cap.
π¦ SYNOPSIS π¦
bool uart_match_port (const struct uart_port *port1 , const struct
uart_port *port2 );
It returns a bool, bestie. That's it. That's the whole vibe check. π
β¨ ARGUMENTS β¨
port1β the first port, aka the first contestant in this Are You The One episode π«Άport2β the second port, aka the one we're holding up next to it like "hmm, twins?" π₯
π DESCRIPTION π
so this utility function is the one you call when you need to determine whether two uart_port structures describe the same port. That's it. That's the whole job. It's giving "small but iconic side character who shows up, drops one crucial line, and leaves." π
No extra lore, no secret tricks, no "well actually" β it just tells you if these two structs are describing the same port. periodt. π
π SEE ALSO π
Kernel file ./drivers/tty/serial/serial_core.c β like, that's the neighborhood, that's where the whole friend group hangs out πΈ β and the rest of the crew:
uart_write_wakeup(9)uart_update_timeout(9)uart_get_baud_rate(9)uart_get_divisor(9)uart_get_lsr_info(9)uart_console_write(9)uart_parse_earlycon(9)uart_parse_options(9)uart_set_options(9)uart_change_pm(9)uart_register_driver(9)uart_unregister_driver(9)serial_core_add_one_port(9)serial_core_remove_one_port(9)uart_handle_dcd_change(9)uart_handle_cts_change(9)uart_insert_char(9)uart_try_toggle_sysrq(9)uart_get_rs485_mode(9)
like, go read them too, they're all main characters in their own way π§π«
lowkey a reminder bestie: this page is literally just "are these two the same port" β don't go reading extra powers into it, iykyk π
and that's a wrap, gorgeous π this little love letter lives over in ./drivers/tty/serial, and it's stamped October 2026 β so go forth, match those ports, slay, and remember: the vibes are immaculate and the bool is boolean. ππβ
π¦ 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