cdns_uart_set_baud_rate(9)
π« cdns_uart_set_baud_rate(9) π«
okay bestie, so this is a page from the Kernel API Manual β yes, the kernel API manual, we're in the big leagues now β and the star of the show is cdns_uart_set_baud_rate. it does exactly what it says on the tin: it figures out your baud rate and then sets it. no cap, that's the whole vibe check. π
β¨ NAME β¨
cdns_uart_set_baud_rate β calculate and set the baud rate π
πΈ SYNOPSIS πΈ
unsigned int cdns_uart_set_baud_rate (struct uart_port *port , unsigned
int baud );
that's the whole signature, character for character. yes the line break is real, we don't fight the source. π«Ά
π¦ ARGUMENTS π¦
portβ the handle to theuart portstructure. it's your little portal to the port, iykyk.baudβ the baud rate you actually want to set. your dream number, basically. β¨
β RETURN β
so what comes back out? the baud rate:
- if it can give you the requested baud β you get the requested baud π₯³
- if the error is too much β you get the actual baud instead (the best it could do, and it's telling you)
- and if no valid divisors are found β you get zero. literally zero. the void. π
π₯ SEE ALSO π₯
okay this is the part where the whole friend group shows up, because they all live in the kernel file ./drivers/tty/serial/xilinx_uartps.c. say hi to everyone:
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_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_set_termios(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)
like, every single one of them. main character energy all around. π
live in ./drivers/tty/serial and it's stamped October 2026 β the future is now, bestie. π
and that's the page!! mwah, hope this slayed for you ππ§π
π¦ 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