Searched refs:lircfd (Results 1 – 1 of 1) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_lirc_mode2_user.c | 52 int ret, lircfd, progfd, inputfd; in main() local 69 lircfd = open(argv[1], O_RDWR | O_NONBLOCK); in main() 70 if (lircfd == -1) { in main() 76 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main() 89 ret = bpf_prog_query(lircfd, BPF_LIRC_MODE2, 0, prog_flags, prog_ids, in main() 101 ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); in main() 108 ret = write(lircfd, &testir1, sizeof(testir1)); in main() 134 ret = write(lircfd, &testir2, sizeof(testir2)); in main() 157 ret = bpf_prog_query(lircfd, BPF_LIRC_MODE2, 0, prog_flags, prog_ids, in main() 170 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
|
Completed in 2 milliseconds