hid_validate_values(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hid_validate_values β€” no cap, it validates ur value indexes πŸ’–

okay so bestie, we're deep in the Kernel API Manual today (yes, the kernel, we're built different) and this little function is the vibe check for HID reports. let's get into it 🫢


✨ NAME ✨

hid_validate_values β€” validates the value indexes of a report that already exists on the device. that's it, that's the whole gig πŸ’…


🌸 SYNOPSIS 🌸

struct hid_report * hid_validate_values (struct hid_device *hid , enum hid_report_type type , unsigned int id , unsigned int field_index , unsigned int report_counts );

like, look at all those args. she's thorough. we respect it πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • hid β€” the hid device itself, the main character of this whole situation πŸ’–
  • type β€” which report type we're examining. pick one, bestie, you gotta know what you're looking at πŸ¦‹
  • id β€” which report ID to examine. 0 means the first one, casual, lowkey the default move ✨
  • field_index β€” which report field to examine. yes, you have to say which field. no, you can't just wave vaguely at the report 🌸
  • report_counts β€” the expected number of values. i.e. what you think the count should be, and this function will fr fr check it for you 🧚

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she validates the number of values in a given field of a given report β€” and this happens after parsing, which is the key detail here, don't skip it πŸ™ˆ

that's the whole description. she's not complicated, she's just reliable. iconic behavior, honestly πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in order, don't forget any of them 🫢:


bestie reminder: everything above is exactly what the page says β€” i'm not out here inventing lore. check the links, they're all there, no gatekeeping πŸ’–

⭐ and that's the page!! brought to you by the fine folks at ./drivers/hid, dated October 2026 β€” mwah, love u, go validate some values πŸ’…πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from