serial8250_em485_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ serial8250_em485_destroy β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual page for serial8250_em485_destroy(9). This is the function that puts your uart_8250_port back into normal state, and honestly? iconic. πŸ’…

🌸 NAME 🌸

serial8250_em485_destroy β€” put uart_8250_port into normal state.

✨ SYNOPSIS ✨

void serial8250_em485_destroy (struct uart_8250_port *p );

πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” uart_8250_port port instance. Yep, that's the port baddie we're working with. 🫢

πŸ’– DESCRIPTION πŸ’–

This function is the one you call to stop rs485 software emulating on the struct uart_8250_port* p. It's giving "turn off the emulation, we're done here" energy. 😭

The function is idempotent, so it is safe to call it multiple times. No cap β€” call it again if you want, it's not gonna freak out. πŸ’€

It's supposed to be called from the .rs485_config callback, or from any other callback protected with the p->port.lock spinlock. Protect that callback, bestie. ⭐

See also serial8250_em485_init.

πŸ¦‹ SEE ALSO πŸ¦‹


xoxo, your Unix bestie πŸ’œ β€” source/version: ./drivers/tty/serial/8250, date: October 2026, and yes, this is the serial8250_em485_destroy(9) page. Slay. 🌈

πŸ“¦ where this page comes from