mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
4a86220e04
We can now rely on struct_ops as we cleared the users in-tree. Link: https://lore.kernel.org/r/20240608-hid_bpf_struct_ops-v3-8-6ac6ade58329@kernel.org Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
22 lines
493 B
C
22 lines
493 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef _BPF_HID_BPF_DISPATCH_H
|
|
#define _BPF_HID_BPF_DISPATCH_H
|
|
|
|
#include <linux/hid.h>
|
|
|
|
struct hid_bpf_ctx_kern {
|
|
struct hid_bpf_ctx ctx;
|
|
u8 *data;
|
|
};
|
|
|
|
struct hid_device *hid_get_device(unsigned int hid_id);
|
|
void hid_put_device(struct hid_device *hid);
|
|
int hid_bpf_allocate_event_data(struct hid_device *hdev);
|
|
void __hid_bpf_ops_destroy_device(struct hid_device *hdev);
|
|
int hid_bpf_reconnect(struct hid_device *hdev);
|
|
|
|
struct bpf_prog;
|
|
|
|
#endif
|