uart_change_pm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… uart_change_pm β€” the kernel API manual, bestie edition ✨

okay so real talk, you're looking at uart_change_pm(9) from the Kernel API Manual and honestly? It's a tiny one but it's important, so let's get into it πŸŽ€


🌸 NAME 🌸

uart_change_pm β€” sets the power state of the port. that's it, that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void uart_change_pm (struct uart_state *state , enum uart_pm_state
pm_state );

like, she takes a struct uart_state * and an enum uart_pm_state and returns void. no drama, no return value, just vibes πŸ’…


πŸ“ ARGUMENTS πŸ“

  • state β€” the port descriptor. your little port bestie πŸ’–
  • pm_state β€” the new state. the glow-up she's getting ✨

πŸ”₯ DESCRIPTION πŸ”₯

Locking: port->mutex has to be held πŸ”’

no cap, this is the whole description. before you call her, you must be holding port->mutex β€” that's the rule, periodt. don't be the person who skips the lock, i'm literally begging πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/tty/serial/serial_core.c β€” and her whole friend group, fr fr:

like, that's the whole group chat, iykyk 🫢


and that's the page!! mwah πŸ’‹ this cutie lives over in ./drivers/tty/serial, and the version on deck is from October 2026 β€” go forth and set those power states responsibly, bestie 🌈⭐

πŸ“¦ where this page comes from