hid_hw_raw_request(9)
π hid_hw_raw_request(9) π
okay so bestie, welcome to the kernel API manual (yes, that manual) β today's main character is hid_hw_raw_request, and honestly? she serves. let's get into it π«Ά
β¨ NAME β¨
hid_hw_raw_request β send a report request to the device. that's it, that's the vibe. π¨
πΈ SYNOPSIS πΈ
int hid_hw_raw_request (struct hid_device *hdev , unsigned char
reportnum , __u8 *buf , size_t len , enum hid_report_type rtype , enum
hid_class_request reqtype );
like yes, it's a lot of parameters, but we don't gatekeep function signatures here π
π ARGUMENTS π
hdevβ the hid device. your fave. the one you're talking to πreportnumβ report ID. gotta know which report you're sliding into β¨bufβ the in/out data to transfer. in and out, she's versatile like that π¦lenβ length ofbuf. keep it accurate or it's giving chaos πrtypeβ HID report type. the type of report, iykyk πreqtypeβ eitherHID_REQ_GET_REPORTorHID_REQ_SET_REPORT. pick one, bestie β get it or set it π₯
π RETURN π
count of data transferred π« β and if something went wrong? negative. yes, negative. not me crying over an error code π
π DESCRIPTION π
Same behavior as hid_hw_request, but with raw buffers instead.
that's the whole thing. same energy, raw buffers. she said "I'm my sister but unprocessed" and honestly? iconic π§
π¦ SEE ALSO π¦
Kernel file ./drivers/hid/hid-core.c β and the whole friend group:
hid_parse_report(9)hid_validate_values(9)hid_open_report(9)hid_match_report(9)hid_match_usage(9)hid_input_report(9)hid_safe_input_report(9)hid_hw_start(9)hid_hw_stop(9)hid_hw_open(9)hid_hw_close(9)hid_hw_request(9)hid_hw_output_report(9)new_id_store(9)hid_compare_device_paths(9)hid_allocate_device(9)hid_destroy_device(9)
literally the entire squad, go read them all, no cap πβ¨
mwah π this page lives in ./drivers/hid, dated October 2026, and yes the version tag matches the manual name hid_hw_raw_request(9) because she's consistent like that. periodt. π
π¦ 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