serial8250_em485_destroy(9)
π 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 π¦
- Kernel file:
./drivers/tty/serial/8250/8250_port.c serial8250_em485_init(9),serial8250_em485_config(9),serial8250_em485_stop_tx(9),serial8250_em485_start_tx(9)
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
- 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