Lines Matching refs:fdmap
35 * referred to as fdmap. A writer thread will constantly be writing to
38 * is not what we want to stress. The size of the fdmap can be adjusted
123 int *fdmap;
330 w->fdmap = calloc(nfds, sizeof(int));
331 if (!w->fdmap)
338 w->fdmap[j] = eventfd(0, EFD_NONBLOCK);
339 if (w->fdmap[j] < 0)
342 ev.data.fd = w->fdmap[j];
346 w->fdmap[j], &ev);
401 shuffle((void *)w->fdmap, nfds, sizeof(int));
406 sz = write(w->fdmap[j], &val, sizeof(val));
513 * to each thread's fdmap.
546 printf("[thread %2d] fdmap: %p [ %04ld ops/sec ]\n",
547 worker[i].tid, &worker[i].fdmap[0], t);
549 printf("[thread %2d] fdmap: %p ... %p [ %04ld ops/sec ]\n",
550 worker[i].tid, &worker[i].fdmap[0],
551 &worker[i].fdmap[nfds-1], t);
559 free(worker[i].fdmap);