STRUCT ALPS_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the struct 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, the struct alps_dev(9) era is upon us πŸ§šβ€β™€οΈβœ¨
πŸ“¦ where this page comes from