ps2_drain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ¦‹


and that's the page, babe! source/version: ./drivers/input/serio · date: October 2026 · page: ps2_drain(9) 🫢✨

πŸ“¦ where this page comes from