Searched refs:fdmap (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/tools/perf/bench/ |
H A D | epoll-ctl.c | 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() 215 ev.data.fd = w->fdmap[i]; 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() 417 &worker[i].fdmap[nfds-1], in bench_epoll_ctl() [all …]
|
H A D | epoll-wait.c | 123 int *fdmap; member 330 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 331 if (!w->fdmap) in do_threads() 338 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads() 339 if (w->fdmap[j] < 0) in do_threads() 342 ev.data.fd = w->fdmap[j]; in do_threads() 346 w->fdmap[j], &ev); in do_threads() 406 sz = write(w->fdmap[j], &val, sizeof(val)); in writerfn() 545 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_wait() 546 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait() [all …]
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user-glib.c | 116 g_hash_table_replace(dev->fdmap, GINT_TO_POINTER(fd), src); in set_watch() 128 g_hash_table_remove(dev->fdmap, GINT_TO_POINTER(fd)); in remove_watch() 161 dev->fdmap = g_hash_table_new_full(NULL, NULL, NULL, in vug_init() 174 g_hash_table_unref(dev->fdmap); in vug_deinit()
|
H A D | libvhost-user-glib.h | 24 GHashTable *fdmap; /* fd -> gsource */ member
|