uart_handle_dcd_change(9)
π NAME π
uart_handle_dcd_change β bestie, this is the one that handles a change of carrier detect state β¨ (yes, that DCD, the modem line, the whole vibe check of "is somebody actually on the other end of this wire")
πΈ SYNOPSIS πΈ
void uart_handle_dcd_change (struct uart_port *uport , bool active );
π ARGUMENTS π
uportβ theuart_portstructure for the open port π«Ά like, the port that's actually up and running, not some random one you fished out of a drawer.activeβ the new carrier detect status π the fresh DCD value, handed to you like a lil' boo-boo update.
β¨ DESCRIPTION β¨
Okay so real talk: the caller must hold uport->lock π no cap. That's the whole deal. You're the caller, you bring the lock, that's the entry fee. Don't show up unlocked, it's giving chaos π
π¦ SEE ALSO π¦
Kernel file ./drivers/tty/serial/serial_core.c β the source of truth, go read it, it ate π
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_match_port(9)uart_handle_cts_change(9)uart_insert_char(9)uart_try_toggle_sysrq(9)uart_get_rs485_mode(9)
That's the whole page, bestie, you're so welcome π And for the sign-off: this lil' baddie lives in ./drivers/tty/serial, it's dated October 2026, and it came to you courtesy of the Kernel API Manual π§β Go forth and handle those carrier detect changes responsibly, mwah π
π¦ 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