__ps2_command(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is __ps2_command(9) from the Kernel API Manual, and it's literally the little icon that sends a command to a PS/2 device. no cap, it's giving embedded realness πŸ¦‹.

✨ NAME ✨

__ps2_command β€” send a command to PS/2 device πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

int __ps2_command (struct ps2dev *ps2dev , u8 *param , unsigned int
       command );

πŸ’… ARGUMENTS πŸ’…

  • ps2dev β€” the PS/2 device that should execute the command. main character energy, fr fr πŸ‘‘.
  • param β€” a buffer containing parameters to be sent along with the command, or place where the results of the command execution will be deposited, or both. the way it's both input and output? obsessed ✨.
  • command β€” command word that encodes the command itself, as well as number of additional parameter bytes that should be sent to the device and expected length of the command response. iykyk, it's packed with info πŸ’….

🌸 DESCRIPTION 🌸

🚨 Not serialized. Callers should use ps2_begin_command and ps2_end_command to ensure proper serialization for complex commands.

so like, this function is not serialized β€” that's the whole vibe check, bestie. if you're doing complex commands, please use ps2_begin_command and ps2_end_command to ensure proper serialization. don't skip the serialization duo and hope for the best 😭.

πŸŽ€ SEE ALSO πŸŽ€

go peek at the Kernel file ./drivers/input/serio/libps2.c, and also these absolute icons:

made with πŸ’– from the source path ./drivers/input/serio, dated October 2026, for __ps2_command(9) β€” slay and read the source, bestie 🫢.

πŸ“¦ where this page comes from