STRUCT OUTPUT_REPORT_HEADER(9)
π struct output_report_header(9) π
okay bestie, so we're deep in the Kernel API Manual (section 9, the big-kid kernel structures section, iykyk) and today's main character is struct output_report_header β literally the output report header definition in the HIDSPI protocol. it's giving "small struct, big responsibilities" and honestly? we're obsessed. π
β¨ SYNOPSIS β¨
struct output_report_header {
u8 report_type;
__le16 content_len;
u8 content_id;
};
like, that's the whole thing. three fields. no cap, she's compact. π¦
πΈ Members πΈ
report_typeβ the output report type, and it's a reference toenum output_report_type(go look it up, bestie, it's right there π )content_lenβ length of content. that's it. that's the field.__le16so mind your endianness, fr fr. βcontent_idβ okay this one's the multitasker of the group and it depends on context, so listen up:0x00β descriptors report id π- Set/Feature feature πΈ
- or Input/Output Reports command opcode β for commands π
literally "it depends" energy but make it kernel, and we respect it. π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/hid-over-spi.h struct input_report_body_header(9)struct input_report_body(9)struct output_report(9)struct hidspi_dev_descriptor(9)
go read those next, bestie, they're all in the same friend group π«Ά
okay that's the whole page, mwah. π this icon lives in ./include/linux, dated October 2026, and she answers to struct output_report_header(9) β 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