Lines Matching defs:fdmap
71 int *fdmap;
165 fd = w->fdmap[rnd1 % nfds];
192 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]);
193 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]);
194 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]);
215 ev.data.fd = w->fdmap[i];
218 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0)
237 w->fdmap = calloc(nfds, sizeof(int));
238 if (!w->fdmap)
242 w->fdmap[j] = eventfd(0, EFD_NONBLOCK);
243 if (w->fdmap[j] < 0)
248 * Lets add 50% of the fdmap to the epoll instance, and
398 printf("[thread %2d] fdmap: %p [ add: %04ld; mod: %04ld; del: %04lds ops ]\n",
399 worker[i].tid, &worker[i].fdmap[0],
402 printf("[thread %2d] fdmap: %p ... %p [ add: %04ld ops; mod: %04ld ops; del: %04ld ops ]\n",
403 worker[i].tid, &worker[i].fdmap[0],
404 &worker[i].fdmap[nfds-1],