hid_bpf_hw_output_report(9)
π hid_bpf_hw_output_report(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one is literally all about hid_bpf_hw_output_report, and yes, it does exactly what the name says: it sends an output report to a HID device π«Ά no cap.
β¨ NAME β¨
hid_bpf_hw_output_report β send an output report to a HID device π
πΈ SYNOPSIS πΈ
__bpf_kfunc int hid_bpf_hw_output_report (struct hid_bpf_ctx *ctx , __u8
*buf , size_t buf__sz );
π ARGUMENTS π
ctxβ the HID-BPF context that was previously allocated inhid_bpf_allocate_contextπ like, it has to come from there, okay?bufβ aPTR_TO_MEMbuffer π¦ that's the vibe.buf__szβ the size of the data to transfer β literally how much data is moving.
π DESCRIPTION π
Returns the number of bytes transferred on success π and a negative error code otherwise π periodt.
π SEE ALSO π
Kernel file ./drivers/hid/bpf/hid_bpf_dispatch.c β plus these besties:
hid_bpf_get_data(9)hid_bpf_allocate_context(9)hid_bpf_release_context(9)hid_bpf_hw_request(9)hid_bpf_try_input_report(9)hid_bpf_input_report(9)
π and that's the whole page, bestie π
this iconic little number lives in ./drivers/hid/bpf, and it's dated October 2026 π mwah π
π¦ 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