STRUCT ALPS_DEV(9)
β¨ struct alps_dev(9) β¨
okay bestie, so this is a page from the Kernel API Manual and it's literally all about struct alps_dev β the struct that holds everything the ALPS driver needs to know about your touchpad π no cap, and the NAME line is empty in the original so likeβ¦ the name is just the struct itself, iykyk π
πΈ SYNOPSIS πΈ
here's the whole thing verbatim, don't touch a single character bestie:
struct alps_dev {
struct input_dev *input;
struct input_dev *input2;
struct hid_device *hdev;
enum dev_num dev_type;
u8 max_fingers;
u8 has_sp;
u8 sp_btn_info;
u32 x_active_len_mm;
u32 y_active_len_mm;
u32 x_max;
u32 y_max;
u32 x_min;
u32 y_min;
u32 btn_cnt;
u32 sp_btn_cnt;
};
π Members π
the main character energy of this struct is all in the members, so let's go through every single one π«Ά
inputβ pointer to the kernel input device β¨input2β pointer to the kernel input2 device β¨ (yes there's a second one, she's got range)hdevβ pointer to thestruct hid_deviceπ₯dev_typeβ device type π¦max_fingersβ total number of fingers, like the whole squad πhas_spβ boolean of sp existense π«§ (that's spelled exactly like that in the original, keep it iconic)sp_btn_infoβ button information πx_active_len_mmβ active area length of X (mm) πy_active_len_mmβ active area length of Y (mm) πx_maxβ maximum x coordinate value βy_maxβ maximum y coordinate value βx_minβ minimum x coordinate value πy_minβ minimum y coordinate value πbtn_cntβ number of buttons πsp_btn_cntβ number of stick buttons π
π SEE ALSO π
if you wanna read the actual source (and honestly, why wouldn't you), go check out the kernel file:
./drivers/hid/hid-alps.c
and that's the whole vibe bestie, go forth and slay those touchpad structs π
this masterpiece comes from./drivers/hid, dated October 2026 β fr fr, thestruct alps_dev(9)era is upon us π§ββοΈβ¨
π¦ 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