uart_port_lock_irqsave(9)
π 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:
struct uart_ops(9)β the main character of this particular section ngluart_port_set_cons(9)uart_port_lock(9)uart_port_lock_irq(9)uart_port_trylock(9)uart_port_trylock_irqsave(9)uart_port_unlock(9)uart_port_unlock_irq(9)uart_port_unlock_irqrestore(9)enum uart_pm_state(9)uart_xmit_advance(9)enum UART_TX_FLAGS(9)uart_port_tx_limited(9)uart_port_tx_limited_flags(9)uart_port_tx(9)uart_port_tx_flags(9)
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
- 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