serial_core_remove_one_port(9)
serial_core_remove_one_port(9) π
okay so welcome to the Kernel API Manual, bestie β todayβs main character is serial_core_remove_one_port(9), and yes, she is here to detach a driver defined port structure. slay. π
β¨ NAME β¨
serial_core_remove_one_port β detach a driver defined port structure π«Ά
πΈ SYNOPSIS πΈ
void serial_core_remove_one_port (struct uart_driver *drv , struct uart_port *uport );
π¦ ARGUMENTS π¦
drvβ pointer to the uart low level driver structure for this port. itβs giving βwhoβs your driver bestieβ energy. πuportβ uart port structure for this port. literally the port in question. π
β CONTEXT β
task context, might sleep π΄ β so like, act accordingly, bestie.
π₯ DESCRIPTION π₯
This unhooks the specified port structure from the core driver β and hangs it up too, no cap. once thatβs done, no further calls will be made to the low-level code for this port. periodt. π
The caller must hold port_mutex π β that is not a vibe suggestion, itβs the rule. fr fr.
π SEE ALSO π
Kernel file ./drivers/tty/serial/serial_core.c β thatβs the lore zone. ππ
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)uart_match_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)
later bestie π β brought to you by ./drivers/tty/serial, October 2026, and the one and only serial_core_remove_one_port(9), 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