commit | f4364dcfc86df7c1ca47b256eaf6b6d0cdd0d936 | [log] [tgz] |
---|---|---|
author | Sean Young <sean@mess.org> | Sun May 27 12:24:09 2018 +0100 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Wed May 30 12:38:40 2018 +0200 |
tree | aa0d09b48734429acec8d26b703db839fcc655de | |
parent | 170a7e3ea0709eae12c8f944b9f33c54fe80c6c1 [diff] |
media: rc: introduce BPF_PROG_LIRC_MODE2 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>