Lines Matching refs:fds
139 static int sock_fanout_read(int fds[], char *rings[], const int expect[]) in sock_fanout_read() argument
143 ret[0] = sock_fanout_read_ring(fds[0], rings[0]); in sock_fanout_read()
144 ret[1] = sock_fanout_read_ring(fds[1], rings[1]); in sock_fanout_read()
173 int fds[2]; in test_control_group() local
177 fds[0] = sock_fanout_open(PACKET_FANOUT_HASH, 20); in test_control_group()
178 if (fds[0] == -1) { in test_control_group()
196 fds[1] = sock_fanout_open(PACKET_FANOUT_HASH, 20); in test_control_group()
197 if (fds[1] == -1) { in test_control_group()
201 if (close(fds[1]) || close(fds[0])) { in test_control_group()
212 int fds[2], fds_udp[2][2], ret; in test_datapath() local
216 fds[0] = sock_fanout_open(typeflags, 20); in test_datapath()
217 fds[1] = sock_fanout_open(typeflags, 20); in test_datapath()
218 if (fds[0] == -1 || fds[1] == -1) { in test_datapath()
222 rings[0] = sock_fanout_open_ring(fds[0]); in test_datapath()
223 rings[1] = sock_fanout_open_ring(fds[1]); in test_datapath()
226 sock_fanout_read(fds, rings, expect0); in test_datapath()
231 ret = sock_fanout_read(fds, rings, expect1); in test_datapath()
236 ret |= sock_fanout_read(fds, rings, expect2); in test_datapath()
245 close(fds[1]) || close(fds[0])) { in test_datapath()