Lines Matching defs:fds
967 static int receive_pkts(struct test_spec *test, struct pollfd *fds)
998 ret = poll(fds, 1, POLL_TMOUT);
1010 if (!(fds->revents & POLLIN))
1024 ret = poll(fds, 1, POLL_TMOUT);
1095 static int __send_pkts(struct ifobject *ifobject, struct pollfd *fds, bool timeout)
1113 ret = poll(fds, 1, POLL_TMOUT);
1189 ret = poll(fds, 1, POLL_TMOUT);
1220 struct pollfd fds = { };
1223 fds.fd = xsk_socket__fd(ifobject->xsk->xsk);
1224 fds.events = POLLOUT;
1227 ret = __send_pkts(ifobject, &fds, timeout);
1494 struct pollfd fds = { };
1508 fds.fd = xsk_socket__fd(ifobject->xsk->xsk);
1509 fds.events = POLLIN;
1513 err = receive_pkts(test, &fds);