Searched refs:lircfd (Results 1 – 1 of 1) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 51 int ret, lircfd, progfd, inputfd; in main() local 68 lircfd = open(argv[1], O_RDWR | O_NONBLOCK); in main() 69 if (lircfd == -1) { in main() 75 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main() 88 ret = bpf_prog_query(lircfd, BPF_LIRC_MODE2, 0, prog_flags, prog_ids, in main() 100 ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); in main() 107 ret = write(lircfd, &testir1, sizeof(testir1)); in main() 133 ret = write(lircfd, &testir2, sizeof(testir2)); in main() 156 ret = bpf_prog_query(lircfd, BPF_LIRC_MODE2, 0, prog_flags, prog_ids, in main() 169 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
|