Home
last modified time | relevance | path

Searched refs:lircfd (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c52 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()