cdns_uart_set_termios(9)
π cdns_uart_set_termios(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for cdns_uart_set_termios β this is the termios glow-up function, and she is busy. π She handles data length, parity, stop bits, flow control, and baud rate. Basically all the personality traits of your serial line, all at once. Iconic behaviour, no cap.
πΈ NAME πΈ
cdns_uart_set_termios β the termios operations girlie: she's in charge of data length, parity, stop bits, flow control, and baud rate π
β¨ SYNOPSIS β¨
void cdns_uart_set_termios (struct uart_port *port , struct ktermios
*termios , const struct ktermios *old );
note the void bestie β she does the work and gives you nothing back. queen behaviour honestly π
π¦ ARGUMENTS π¦
portβ handle to the uart port structure. this is the main character of the whole operation, the actual port you're re-styling πtermiosβ handle to the input termios structure. this is the new fit she's trying on β the settings you actually want β¨oldβ values of the previously saved termios structure. the before pic πΈ so she can see what changed
π₯ SEE ALSO π₯
kernel file ./drivers/tty/serial/xilinx_uartps.c, plus the whole friend group β these are all literally in the same file, it's giving group chat:
struct cdns_uart(9)cdns_uart_handle_rx(9)cdns_rts_gpio_enable(9)cdns_rs485_tx_setup(9)cdns_rs485_rx_setup(9)cdns_uart_tx_empty(9)cdns_rs485_rx_callback(9)cdns_calc_after_tx_delay(9)cdns_uart_handle_tx(9)cdns_uart_isr(9)cdns_uart_calc_baud_divs(9)cdns_uart_set_baud_rate(9)cdns_uart_clk_notifier_cb(9)cdns_rs485_tx_callback(9)cdns_uart_start_tx(9)cdns_uart_stop_tx(9)cdns_uart_stop_rx(9)cdns_uart_break_ctl(9)cdns_uart_startup(9)cdns_uart_shutdown(9)cdns_uart_type(9)cdns_uart_verify_port(9)cdns_uart_request_port(9)cdns_uart_release_port(9)cdns_uart_config_port(9)cdns_uart_get_mctrl(9)cdns_uart_console_putchar(9)cdns_uart_console_write(9)cdns_uart_console_setup(9)cdns_uart_suspend(9)cdns_uart_resume(9)cdns_rs485_config(9)cdns_uart_probe(9)cdns_uart_remove(9)
ok that's a lot of siblings but they're all valid, go say hi π«Ά
and that's the whole page bestie, ily for reading to the end π this one lives in ./drivers/tty/serial, dated October 2026, from the Kernel API Manual β mwah, go configure some uart ππ
π¦ 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