hid_bpf_hw_output_report(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 in hid_bpf_allocate_context πŸ‘‘ like, it has to come from there, okay?
  • buf β€” a PTR_TO_MEM buffer πŸ¦‹ 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:


πŸ’… 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