Home | History | Annotate | Download | only in libevent

Lines Matching full:fdi

102 #define FDI_HAS_READ(fdi)  ((fdi)->fdi_what & EV_READ)
103 #define FDI_HAS_WRITE(fdi) ((fdi)->fdi_what & EV_WRITE)
104 #define FDI_HAS_EVENTS(fdi) (FDI_HAS_READ(fdi) || FDI_HAS_WRITE(fdi))
105 #define FDI_TO_SYSEVENTS(fdi) (FDI_HAS_READ(fdi) ? POLLIN : 0) | \
106 (FDI_HAS_WRITE(fdi) ? POLLOUT : 0)
110 int ed_nevents; /* number of allocated fdi's */
111 struct fd_info *ed_fds; /* allocated fdi table */
112 /* fdi's that we need to reassoc */
295 struct fd_info *fdi = NULL;
297 fdi = &(epdp->ed_fds[epdp->ed_pending[i]]);
300 if (fdi != NULL && FDI_HAS_EVENTS(fdi)) {
302 reassociate(epdp, fdi, fd);
329 struct fd_info *fdi;
358 fdi = &(epdp->ed_fds[fd]);
378 struct fd_info *fdi;
398 fdi = &evpd->ed_fds[fd];
399 fdi->fdi_what |= events;
401 return reassociate(evpd, fdi, fd);
412 struct fd_info *fdi;
430 fdi = &evpd->ed_fds[fd];
432 fdi->fdi_what &= ~EV_READ;
434 fdi->fdi_what &= ~EV_WRITE;
437 if (!FDI_HAS_EVENTS(fdi) &&
448 if (FDI_HAS_EVENTS(fdi)) {
449 return (reassociate(evpd, fdi, fd));
453 if ((fdi->fdi_what & (EV_READ|EV_WRITE)) == 0) {