men_z135_intr(9)
π men_z135_intr(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a lil kernel function page and honestly it's kind of iconic? it's all about handling legacy IRQs and keeping your UART from spiraling. let's get into it π«Ά
β¨ NAME β¨
men_z135_intr β handle legacy IRQs π
like literally the interrupt handler. it handles the legacy IRQs. that's the vibe.
π SYNOPSIS π
irqreturn_t men_z135_intr (int irq , void *data );
she returns an irqreturn_t and takes two args, periodt. π
πΈ ARGUMENTS πΈ
irqβ the IRQ number π’ like, which interrupt are we even talking aboutdataβ pointer to UART port π (yes it's avoid *, no we don't ask questions)
π¦ DESCRIPTION π¦
so the move here is: check the IIR register to figure out what actually caused the interrupt, then handle it. π₯
and here's the tea, bestie β it is possible that multiple interrupts reason bits are set, and reading the IIR is a destructive read π so you can't just peek once and dip. reading it nukes it. so we always need to check for all possible interrupts and handle them. all of them. no skipping. no "eh that one's probably fine." π
it's giving thorough. it's giving responsible main character energy. π
π§ SEE ALSO π§
kernel file ./drivers/tty/serial/men_z135_uart.c β go read the source, iykyk π
and the whole friend group:
men_z135_reg_set(9)men_z135_reg_clr(9)men_z135_handle_modem_status(9)get_rx_fifo_content(9)men_z135_handle_rx(9)men_z135_handle_tx(9)men_z135_request_irq(9)men_z135_tx_empty(9)men_z135_set_mctrl(9)men_z135_get_mctrl(9)men_z135_stop_tx(9)men_z135_start_tx(9)men_z135_stop_rx(9)men_z135_enable_ms(9)men_z135_probe(9)men_z135_remove(9)men_z135_init(9)men_z135_exit(9)
π reminder: destructive read means destructive read. you read it once, it's gone. plan accordingly bestie.
aaand that's the page! π source lives at ./drivers/tty/serial and this lil beauty is dated October 2026 β mwah, slay, bye β¨ππ¦
π¦ 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