summaryrefslogtreecommitdiff
path: root/drivers/hid/bpf/progs/hid_bpf.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.com>2024-05-14 14:44:49 +0300
committerJiri Kosina <jkosina@suse.com>2024-05-14 14:44:49 +0300
commite29fd84c5b49085cf27e1d5f27237d2fb19edefe (patch)
treeb603f41d1b410d9c24ab34ab42e44edca819c43f /drivers/hid/bpf/progs/hid_bpf.h
parentbc5fbae23a880ebe42d4843294667e932379fb71 (diff)
parent89ea968a9d759f71ac7b8d50949a8e5e5bcb1111 (diff)
downloadlinux-e29fd84c5b49085cf27e1d5f27237d2fb19edefe.tar.xz
Merge branch 'for-6.10/hid-bpf' into for-linus
- updates to HID-BPF infrastructure, with some of the specific fixes (e.g. rdesc fixups) abstracted into separate BPF programs for consumption by libevdev/udev-hid-bpf (Benjamin Tissoires)
Diffstat (limited to 'drivers/hid/bpf/progs/hid_bpf.h')
-rw-r--r--drivers/hid/bpf/progs/hid_bpf.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/hid/bpf/progs/hid_bpf.h b/drivers/hid/bpf/progs/hid_bpf.h
new file mode 100644
index 000000000000..7ee371cac2e1
--- /dev/null
+++ b/drivers/hid/bpf/progs/hid_bpf.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* Copyright (c) 2022 Benjamin Tissoires
+ */
+
+#ifndef ____HID_BPF__H
+#define ____HID_BPF__H
+
+struct hid_bpf_probe_args {
+ unsigned int hid;
+ unsigned int rdesc_size;
+ unsigned char rdesc[4096];
+ int retval;
+};
+
+#endif /* ____HID_BPF__H */