Lines Matching refs:fdmap
71 int *fdmap; member
165 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op()
192 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]); in workerfn()
193 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]); in workerfn()
194 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]); in workerfn()
215 ev.data.fd = w->fdmap[i]; in init_fdmaps()
218 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0) in init_fdmaps()
244 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
245 if (!w->fdmap) in do_threads()
249 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads()
250 if (w->fdmap[j] < 0) in do_threads()
412 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
416 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
417 &worker[i].fdmap[nfds-1], in bench_epoll_ctl()
426 free(worker[i].fdmap); in bench_epoll_ctl()