STRUCT HID_SENSOR_HUB_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct hid_sensor_hub_device(9) ✨

okay so bestie, this is a page from the Kernel API Manual β€” yes, the kernel manual, we're doing this, we're built different πŸ’… β€” and it's all about struct hid_sensor_hub_device, which is literally the place where the hub instance data lives. like, that's its whole job. storing the hub instance data. iconic behavior honestly πŸ‘‘


🌸 NAME 🌸

struct hid_sensor_hub_device β€” stores the hub instance data 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole struct, laid out for you, no cap, character for character:

struct hid_sensor_hub_device {
    struct hid_device *hdev;
    u32 vendor_id;
    u32 product_id;
    u32 usage;
    int start_collection_index;
    int end_collection_index;
    struct mutex *mutex_ptr;
    struct sensor_hub_pending pending;
 };

look at her. gorgeous. every field accounted for πŸŽ€


🧚 Members 🧚

let's do a little vibe check on each field, one by one, because they all matter:

  • hdev β€” stores the hid instance. that's it, that's the whole thing πŸ’–
  • vendor_id β€” the vendor id of the hub device. who made it, basically 🏷️
  • product_id β€” the product id of the hub device. which one it is 🌈
  • usage β€” the usage id for this hub device instance. iykyk ✨
  • start_collection_index β€” the starting index for a phy type collection. where the collection begins, bestie πŸ“
  • end_collection_index β€” the last index for a phy type collection. where it wraps up, periodt 🏁
  • mutex_ptr β€” synchronizing mutex pointer. yes, a pointer to the mutex, not the mutex itself. we love a pointer to a lock πŸ”’
  • pending β€” holds information of the pending sync read request. the "wait, we're still waiting on that" info πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

like, go read all of those too, they're all in the family, it's giving found family energy fr fr πŸ’œ


quick reminder bestie: this page lives at ./include/linux and it's dated October 2026 β€” that's the source, the version vibe, and the date all in one πŸŽ€

k byeeee, go read your structs, mwah πŸ’‹πŸ¦‹βœ¨

πŸ“¦ where this page comes from