samples/hid: add Surface Dial example
[linux-block.git] / samples / hid / hid_bpf_helpers.h
index c555aeef5e373371a0ee59c88090cca4337ae8b4..4fff31dbe0e74b7f079f734c6d66d6ee5069a0e9 100644 (file)
@@ -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,