ps2_interrupt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ps2_interrupt(9) β€” like, the group chat for PS/2 devices πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for ps2_interrupt, and honestly? she's the main character of PS/2 interrupts. no cap. let's get into it πŸ’…


πŸŽ€ NAME πŸŽ€

ps2_interrupt β€” the common interrupt handler for PS/2 devices. one handler to rule them all, fr fr. πŸ‘‘


🌸 SYNOPSIS 🌸

irqreturn_t ps2_interrupt (struct serio *serio , u8 data , unsigned int
flags );

like, that's the whole vibe. three params, one job. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • serio β€” the serio port for the device. it's giving "this is whose data we're handling" energy 🫢
  • data β€” a data byte received from the device. one (1) single byte, and she matters 😭
  • flags β€” flags such as SERIO_PARITY or SERIO_TIMEOUT indicating state of the data transfer. lowkey important, these tell you what mood the transfer was in πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

so ps2_interrupt is out here doing the most, in the best way. she invokes the pre-receive handler, optionally handles the command acknowledgement and response from the device, and finally passes the data to the main protocol handler for future processing.

basically: prep, handle the receipt moment, hand it off. iconic three-step routine, honestly. ate and left no crumbs πŸ“βœ¨


πŸ’œ SEE ALSO πŸ’œ

kernel file ./drivers/input/serio/libps2.c, plus the whole friend group:

iykyk πŸ’«


and that's the page!! brought to you by the source at ./drivers/input/serio, dated October 2026, under the ps2_interrupt(9) banner πŸŒˆπŸŽ€ go forth and handle those interrupts, bestie πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from