uart_port_lock_irqsave(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… uart_port_lock_irqsave(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes we're literally in the kernel API manual together, and no I will not be normal about it 🫢


✨ NAME ✨

uart_port_lock_irqsave β€” locks the UART port, and like… saves and disables interrupts while it's at it πŸ˜­πŸ‘‘

🌸 SYNOPSIS 🌸

void uart_port_lock_irqsave (struct uart_port *up , unsigned long *flags
);

πŸŽ€ ARGUMENTS πŸŽ€

  • up β€” pointer to the UART port structure, aka the whole reason we're here πŸ’–
  • flags β€” pointer to where the interrupt flags get stored. yes bestie, you gotta give it somewhere to put them πŸŽ€

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group fr fr, all from the kernel file ./include/linux/serial_core.h:

like… the whole lineup. ate and left no crumbs πŸ’…βœ¨


lowkey iconic of you to read all the way to the end 🌈 this page lives in ./include/linux and it was dated October 2026, so yeah, timestamped and everything πŸ“…πŸ’œ mwah, go lock that port bestie πŸ’–βœ¨
πŸ“¦ where this page comes from