ps2_drain(9)
πΈ NAME πΈ
okay so welcome to the Kernel API Manual page for ps2_drain(9), bestie! ps2_drain waits for the device to transmit the requested number of bytes and discards them. no cap, that's the whole name-summary. π
β¨ SYNOPSIS β¨
here's the signature, copy-paste ready and everything:
void ps2_drain (struct ps2dev *ps2dev , size_t maxbytes , unsigned int timeout );
π ARGUMENTS π
ps2devβ the PS/2 device that should be drained. this is the main character you're targeting, bestie.maxbytesβ maximum number of bytes to be drained. it's the cap, the limit, the "don't do more than this" number.timeoutβ time to drain the device. yes ma'am.
π¦ SEE ALSO π¦
- Kernel file
./drivers/input/serio/libps2.cβ go peek at the source, bestie. ps2_sendbyte(9)ps2_begin_command(9)ps2_end_command(9)ps2_is_keyboard_id(9)__ps2_command(9)ps2_command(9)ps2_sliced_command(9)ps2_init(9)ps2_interrupt(9)
and that's the page, babe! source/version: ./drivers/input/serio Β· date: October 2026 Β· page: ps2_drain(9) π«Άβ¨
π¦ 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