__ps2_command(9)
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 useps2_begin_commandandps2_end_commandto 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:
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)
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
- 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