Home
last modified time | relevance | path

Searched refs:fda (Results 1 – 8 of 8) sorted by relevance

/linux/tools/lib/api/fd/
A Darray.c17 fda->nr = fda->nr_alloc = 0; in fdarray__init()
49 struct fdarray *fda = calloc(1, sizeof(*fda)); in fdarray__new() local
60 return fda; in fdarray__new()
73 free(fda); in fdarray__delete()
80 if (fda->nr == fda->nr_alloc && in fdarray__add()
81 fdarray__grow(fda, fda->nr_autogrow) < 0) in fdarray__add()
84 fda->entries[fda->nr].fd = fd; in fdarray__add()
85 fda->entries[fda->nr].events = revents; in fdarray__add()
86 fda->priv[fda->nr].flags = flags; in fdarray__add()
87 fda->nr++; in fdarray__add()
[all …]
A Darray.h38 void fdarray__init(struct fdarray *fda, int nr_autogrow);
39 void fdarray__exit(struct fdarray *fda);
42 void fdarray__delete(struct fdarray *fda);
44 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags);
45 int fdarray__poll(struct fdarray *fda, int timeout);
46 int fdarray__filter(struct fdarray *fda, short revents,
47 void (*entry_destructor)(struct fdarray *fda, int fd, void *arg),
49 int fdarray__grow(struct fdarray *fda, int extra);
50 int fdarray__fprintf(struct fdarray *fda, FILE *fp);
52 static inline int fdarray__available_entries(struct fdarray *fda) in fdarray__available_entries() argument
[all …]
/linux/tools/perf/tests/
A Dfdarray.c11 fda->nr = fda->nr_alloc; in fdarray__init_revents()
13 for (fd = 0; fd < fda->nr; ++fd) { in fdarray__init_revents()
14 fda->entries[fd].fd = fda->nr - fd; in fdarray__init_revents()
36 if (fda == NULL) { in test__fdarray__filter()
43 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter()
45 nr_fds, fda->nr_alloc); in test__fdarray__filter()
53 nr_fds, fda->nr_alloc); in test__fdarray__filter()
87 fdarray__delete(fda); in test__fdarray__filter()
97 if (fda == NULL) { in test__fdarray__add()
134 if (fda->entries == NULL) { in test__fdarray__add()
[all …]
/linux/tools/perf/
A Dbuiltin-daemon.c1257 struct fdarray fda; in __cmd_start() local
1293 fdarray__init(&fda, 3); in __cmd_start()
1307 sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1311 file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1315 signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1326 if (!err && fdarray__poll(&fda, -1)) { in __cmd_start()
1329 if (fda.entries[sock_pos].revents & POLLIN) in __cmd_start()
1331 if (fda.entries[file_pos].revents & POLLIN) in __cmd_start()
1333 if (fda.entries[signal_pos].revents & POLLIN) in __cmd_start()
1342 fdarray__exit(&fda); in __cmd_start()
A Dbuiltin-kvm.c985 struct fdarray *fda = &kvm->evlist->core.pollfd; in kvm_events_live_report() local
996 if (fda->entries[nr_stdin].revents & POLLIN) in kvm_events_live_report()
/linux/drivers/android/
A Dbinder.c1951 struct binder_fd_array_object *fda; in binder_transaction_buffer_release() local
1969 fda = to_binder_fd_array_object(hdr); in binder_transaction_buffer_release()
1971 fda->parent, in binder_transaction_buffer_release()
1983 debug_id, (u64)fda->num_fds); in binder_transaction_buffer_release()
1990 debug_id, (u64)fda->num_fds); in binder_transaction_buffer_release()
2002 fda->parent_offset; in binder_transaction_buffer_release()
2255 fda->parent_offset; in binder_translate_fd_array()
2926 struct binder_fd_array_object *fda = in binder_transaction() local
2932 &ptr_object, fda->parent, in binder_transaction()
2947 fda->parent_offset, in binder_transaction()
[all …]
/linux/tools/testing/selftests/net/
A Dmsg_zerocopy.c159 int fda = fd; in do_accept() local
161 fd = accept(fda, NULL, NULL); in do_accept()
164 if (close(fda)) in do_accept()
/linux/tools/lib/perf/
A Devlist.c329 static void perf_evlist__munmap_filtered(struct fdarray *fda, int fd, in perf_evlist__munmap_filtered() argument
332 struct perf_mmap *map = fda->priv[fd].ptr; in perf_evlist__munmap_filtered()

Completed in 25 milliseconds