Searched refs:pfd (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/net/ |
D | psock_tpacket.c | 234 struct pollfd pfd; in walk_v1_v2_rx() local 244 memset(&pfd, 0, sizeof(pfd)); in walk_v1_v2_rx() 245 pfd.fd = sock; in walk_v1_v2_rx() 246 pfd.events = POLLIN | POLLERR; in walk_v1_v2_rx() 247 pfd.revents = 0; in walk_v1_v2_rx() 278 poll(&pfd, 1, 1); in walk_v1_v2_rx() 353 struct pollfd pfd; in walk_v1_v2_tx() local 382 memset(&pfd, 0, sizeof(pfd)); in walk_v1_v2_tx() 383 pfd.fd = sock; in walk_v1_v2_tx() 384 pfd.events = POLLOUT | POLLERR; in walk_v1_v2_tx() [all …]
|
D | psock_fanout.c | 115 int pfd; in sock_fanout_set_ebpf() local 126 pfd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in sock_fanout_set_ebpf() 127 if (pfd < 0) { in sock_fanout_set_ebpf() 133 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &pfd, sizeof(pfd))) { in sock_fanout_set_ebpf() 138 if (close(pfd)) { in sock_fanout_set_ebpf()
|
/tools/hv/ |
D | hv_vss_daemon.c | 147 struct pollfd pfd; in main() local 200 pfd.fd = vss_fd; in main() 203 pfd.events = POLLIN; in main() 204 pfd.revents = 0; in main() 206 if (poll(&pfd, 1, -1) < 0) { in main()
|
D | hv_kvp_daemon.c | 1358 struct pollfd pfd; in main() local 1431 pfd.fd = kvp_fd; in main() 1434 pfd.events = POLLIN; in main() 1435 pfd.revents = 0; in main() 1437 if (poll(&pfd, 1, -1) < 0) { in main()
|
/tools/lib/bpf/ |
D | libbpf.c | 698 int *pfd; in bpf_object__create_maps() local 717 pfd = obj->map_fds; in bpf_object__create_maps() 724 *pfd = bpf_create_map(def.type, in bpf_object__create_maps() 728 if (*pfd < 0) { in bpf_object__create_maps() 730 int err = *pfd; in bpf_object__create_maps() 740 pr_debug("create map: fd=%d\n", *pfd); in bpf_object__create_maps() 741 pfd++; in bpf_object__create_maps() 839 char *license, u32 kern_version, int *pfd) in load_program() argument 856 *pfd = ret; in load_program()
|
/tools/iio/ |
D | generic_buffer.c | 405 struct pollfd pfd = { in main() local 410 ret = poll(&pfd, 1, -1); in main()
|