+13
−0
drivers/media/rc/bpf-lirc.c
0 → 100644
+313
−0
+30
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Add support for BPF_PROG_LIRC_MODE2. This type of BPF program can call rc_keydown() to reported decoded IR scancodes, or rc_repeat() to report that the last key should be repeated. The bpf program can be attached to using the bpf(BPF_PROG_ATTACH) syscall; the target_fd must be the /dev/lircN device. Acked-by:Yonghong Song <yhs@fb.com> Signed-off-by:
Sean Young <sean@mess.org> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net>