Searched refs:fdarray (Results 1 - 8 of 8) sorted by relevance
/linux-4.1.27/tools/lib/api/fd/ |
H A D | array.h | 9 * struct fdarray: Array of file descriptors 18 struct fdarray { struct 28 void fdarray__init(struct fdarray *fda, int nr_autogrow); 29 void fdarray__exit(struct fdarray *fda); 31 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow); 32 void fdarray__delete(struct fdarray *fda); 34 int fdarray__add(struct fdarray *fda, int fd, short revents); 35 int fdarray__poll(struct fdarray *fda, int timeout); 36 int fdarray__filter(struct fdarray *fda, short revents, 37 void (*entry_destructor)(struct fdarray *fda, int fd)); 38 int fdarray__grow(struct fdarray *fda, int extra); 39 int fdarray__fprintf(struct fdarray *fda, FILE *fp); 41 static inline int fdarray__available_entries(struct fdarray *fda) fdarray__available_entries()
|
H A D | array.c | 13 void fdarray__init(struct fdarray *fda, int nr_autogrow) fdarray__init() 21 int fdarray__grow(struct fdarray *fda, int nr) fdarray__grow() 44 struct fdarray *fdarray__new(int nr_alloc, int nr_autogrow) fdarray__new() 46 struct fdarray *fda = calloc(1, sizeof(*fda)); fdarray__new() 60 void fdarray__exit(struct fdarray *fda) fdarray__exit() 67 void fdarray__delete(struct fdarray *fda) fdarray__delete() 73 int fdarray__add(struct fdarray *fda, int fd, short revents) fdarray__add() 87 int fdarray__filter(struct fdarray *fda, short revents, fdarray__filter() 88 void (*entry_destructor)(struct fdarray *fda, int fd)) fdarray__filter() 114 int fdarray__poll(struct fdarray *fda, int timeout) fdarray__poll() 119 int fdarray__fprintf(struct fdarray *fda, FILE *fp) fdarray__fprintf()
|
/linux-4.1.27/tools/perf/tests/ |
H A D | fdarray.c | 5 static void fdarray__init_revents(struct fdarray *fda, short revents) fdarray__init_revents() 17 static int fdarray__fprintf_prefix(struct fdarray *fda, const char *prefix, FILE *fp) fdarray__fprintf_prefix() 31 struct fdarray *fda = fdarray__new(5, 5); test__fdarray__filter() 109 struct fdarray *fda = fdarray__new(2, 2); test__fdarray__add()
|
H A D | builtin-test.c | 162 .desc = "Filter fds with revents mask in a fdarray", 166 .desc = "Add fd to a fdarray, making it autogrow",
|
/linux-4.1.27/tools/perf/util/ |
H A D | evlist.h | 49 struct fdarray pollfd;
|
H A D | evlist.c | 452 static void perf_evlist__munmap_filtered(struct fdarray *fda, int fd) perf_evlist__munmap_filtered()
|
/linux-4.1.27/fs/ |
H A D | file.c | 89 * Allocation steps are keyed to the size of the fdarray, since it alloc_fdtable() 91 * the fdarray into comfortable page-tuned chunks: starting at 1024B alloc_fdtable()
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-kvm.c | 944 struct fdarray *fda = &kvm->evlist->pollfd; kvm_events_live_report()
|
Completed in 306 milliseconds