ps2_interrupt(9)
β¨ 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 asSERIO_PARITYorSERIO_TIMEOUTindicating 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:
ps2_sendbyte(9)ps2_begin_command(9)ps2_end_command(9)ps2_drain(9)ps2_is_keyboard_id(9)__ps2_command(9)ps2_command(9)ps2_sliced_command(9)ps2_init(9)
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
- 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