ps2_command(9)
β¨ ps2_command(9) β¨
okay so this is a page straight outta the Kernel API Manual, and bestie, it's literally the glow-up era of PS/2 device comms π
πΈ 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. like, this is the main character of the whole operation π«Ά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. yes bestie, it does double duty β input and output energy, iconic behavior honestly β¨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. everything's packed in there β one little word carrying the whole vibe check π
β NOTE β
ps2_command serializes the command execution so that only one command can be executed at a time for either individual port or the entire 8042 controller. no cutting in line, no chaos, just one at a time β the 8042 controller said periodt π
ngl this is the important bit: one command at a time, per port or for the whole 8042 controller. no cap π§
π SEE ALSO π
Kernel file ./drivers/input/serio/libps2.c β go read the source, iykyk π
ps2_sendbyte(9)ps2_begin_command(9)ps2_end_command(9)ps2_drain(9)ps2_is_keyboard_id(9)__ps2_command(9)ps2_sliced_command(9)ps2_init(9)ps2_interrupt(9)
slay, that's the whole page π and yeah β this lives in ./drivers/input/serio, dated October 2026, from the Kernel API Manual. mwah, go send some commands 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