aboutsummaryrefslogtreecommitdiff
path: root/Documentation/hid
diff options
context:
space:
mode:
authorGravatar Benjamin Tissoires <bentiss@kernel.org> 2024-03-15 15:44:42 +0100
committerGravatar Benjamin Tissoires <bentiss@kernel.org> 2024-04-10 16:38:11 +0200
commit9be50ac30a83896a753ab9f64e941763bb7900be (patch)
treebe748108a980cf8f48685694d8b3ffee573c6ee5 /Documentation/hid
parentselftests/hid: Add test for hid_bpf_hw_output_report (diff)
downloadlinux-9be50ac30a83896a753ab9f64e941763bb7900be.tar.gz
linux-9be50ac30a83896a753ab9f64e941763bb7900be.tar.bz2
linux-9be50ac30a83896a753ab9f64e941763bb7900be.zip
HID: bpf: allow to inject HID event from BPF
It can be interesting to inject events from BPF as if the event were to come from the device. For example, some multitouch devices do not all the time send a proximity out event, and we might want to send it for the physical device. Compared to uhid, we can now inject events on any physical device, not just uhid virtual ones. Link: https://lore.kernel.org/r/20240315-b4-hid-bpf-new-funcs-v4-5-079c282469d3@kernel.org Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'Documentation/hid')
-rw-r--r--Documentation/hid/hid-bpf.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/hid/hid-bpf.rst b/Documentation/hid/hid-bpf.rst
index a575004d9025..0765b3298ecf 100644
--- a/Documentation/hid/hid-bpf.rst
+++ b/Documentation/hid/hid-bpf.rst
@@ -179,7 +179,7 @@ Available API that can be used in syscall HID-BPF programs:
-----------------------------------------------------------
.. kernel-doc:: drivers/hid/bpf/hid_bpf_dispatch.c
- :functions: hid_bpf_attach_prog hid_bpf_hw_request hid_bpf_hw_output_report hid_bpf_allocate_context hid_bpf_release_context
+ :functions: hid_bpf_attach_prog hid_bpf_hw_request hid_bpf_hw_output_report hid_bpf_input_report hid_bpf_allocate_context hid_bpf_release_context
General overview of a HID-BPF program
=====================================