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)
244 w->fdmap = calloc(nfds, sizeof(int));
245 if (!w->fdmap)
249 w->fdmap[j] = eventfd(0, EFD_NONBLOCK);
250 if (w->fdmap[j] < 0)
255 * Lets add 50% of the fdmap to the epoll instance, and
411 printf("[thread %2d] fdmap: %p [ add: %04ld; mod: %04ld; del: %04lds ops ]\n",
412 worker[i].tid, &worker[i].fdmap[0],
415 printf("[thread %2d] fdmap: %p ... %p [ add: %04ld ops; mod: %04ld ops; del: %04ld ops ]\n",
416 worker[i].tid, &worker[i].fdmap[0],
417 &worker[i].fdmap[nfds-1],
426 free(worker[i].fdmap);