Lines Matching refs:fda
16 * I.e. using 'fda->priv[N].idx = * value' where N < fda->nr is ok,
17 * but doing 'fda->priv = malloc(M)' is not allowed.
38 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)
54 return fda->nr_alloc - fda->nr;