summaryrefslogtreecommitdiff
path: root/samples/hid/hid_bpf_helpers.h
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2022-11-03 16:57:55 +0100
committerJiri Kosina <jkosina@suse.cz>2022-11-15 16:28:40 +0100
commita56a256933bb0b593dc36fc8d7bb85ada3655662 (patch)
tree70d42e3b93576c22bf60e622390f64c9b705864d /samples/hid/hid_bpf_helpers.h
parent6008105b4f4e470da0e9159a3a74ca7ff6e869ba (diff)
samples/hid: add Surface Dial example
Add a more complete HID-BPF example. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'samples/hid/hid_bpf_helpers.h')
-rw-r--r--samples/hid/hid_bpf_helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/hid/hid_bpf_helpers.h b/samples/hid/hid_bpf_helpers.h
index c555aeef5e37..4fff31dbe0e7 100644
--- a/samples/hid/hid_bpf_helpers.h
+++ b/samples/hid/hid_bpf_helpers.h
@@ -10,6 +10,8 @@ extern __u8 *hid_bpf_get_data(struct hid_bpf_ctx *ctx,
unsigned int offset,
const size_t __sz) __ksym;
extern int hid_bpf_attach_prog(unsigned int hid_id, int prog_fd, u32 flags) __ksym;
+extern struct hid_bpf_ctx *hid_bpf_allocate_context(unsigned int hid_id) __ksym;
+extern void hid_bpf_release_context(struct hid_bpf_ctx *ctx) __ksym;
extern int hid_bpf_hw_request(struct hid_bpf_ctx *ctx,
__u8 *data,
size_t buf__sz,