STRUCT COMMAND_PROTOCOL_TP_INFO(9)
β¨ struct command_protocol_tp_info(9) β¨
okay bestie, welcome to the Kernel API Manual π
this one's a lil baby struct from the Linux kernel docs and it's literally just vibing in ./drivers/input/keyboard. grab a strawberry π and let's get into it.
πΈ NAME πΈ
struct command_protocol_tp_info β get touchpad info, periodt. π«Ά
like, the whole personality of this struct is: message.type = 0x1020, message.length = 0x0000. that's it. that's the tweet. no cap.
π SYNOPSIS π
struct command_protocol_tp_info {
__le16 crc16;
};
look at her. one single member. main character energy but make it minimal β¨
π¦ Members π¦
crc16β this is the crc over the whole message struct (so the message header plus this struct) minus thiscrc16field itself. iykyk, you don't checksum the checksum π it's giving "don't count yourself in your own group project" fr fr.
π SEE ALSO π
go touch some grass in the kernel source, bestie, specifically Kernel file ./drivers/input/keyboard/applespi.c and then these iconic siblings:
struct keyboard_protocol(9)struct tp_finger(9)struct touchpad_protocol(9)struct touchpad_info_protocol(9)struct command_protocol_mt_init(9)struct command_protocol_capsl(9)struct command_protocol_bl(9)struct message(9)struct spi_packet(9)
the way that's a whole friend group ππ«Ά
ngl there's not a lot here, but that's the point β0x1020means "hey, tell me about the touchpad" and0x0000means "no payload, we're just asking." slay.
and that's the whole page, bestie! π§ source/version: ./drivers/input/keyboard, dated October 2026 β catch you in the next manpage, mwah π
π¦ 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