uart_handle_dcd_change(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the uart_port structure 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 πŸ‘‘


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