cdns_uart_get_mctrl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈:

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