cdns_uart_get_mctrl(9)
π cdns_uart_get_mctrl(9) β the Kernel API Manual moment π
okay so bestie, we're in the Kernel API Manual today and this one is a tiny little icon, ngl. it's short, it's sweet, it does exactly one thing, and honestly? respect. β¨
πΈ NAME πΈ
cdns_uart_get_mctrl β Get the modem control state π¦
like, it literally goes and fetches the modem control state for you. that's the whole vibe check. no cap.
β SYNOPSIS β
unsigned int cdns_uart_get_mctrl (struct uart_port *port );
yep that's it. one function, one argument, returns an unsigned int. clean, minimal, main character energy fr fr. π
π ARGUMENTS π
portβ Handle to the uart port structure π«Ά β you pass in your pointer to the uart port struct and that's the thing it's gonna go look at. that's your whole ticket in, bestie.
π RETURN π
the modem control state β¨ β that's what you get back. it hands you the modem control state and you say thank you and you move on with your life. periodt. π
π¦ SEE ALSO π¦
okay this is where it gets iconic because the SEE ALSO section here is giving full ensemble cast energy β like everybody in the xilinx_uartps.c friend group showed up to the party π:
- the Kernel file
./drivers/tty/serial/xilinx_uartps.cβ that's the source file, that's home base π 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_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_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β¦ the whole squad ππ go read them, iykyk.
lowkey a reminder bestie: this page is just the getter. it gets the modem control state, it doesn't set it, it doesn't configure anything, it just gets. don't be out here expecting more from it, ok? π
and that's the page!! πΈ source/version-wise we're hanging out in ./drivers/tty/serial, dated October 2026 β so yeah, mark your calendar, screenshot it, whatever, mwah πβ¨ go get that modem control state bestie, you're gonna 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