Lines Matching refs:portfd
69 int portfd; /* event port */ member
80 state->portfd = port_create(); in aeApiCreate()
81 if (state->portfd == -1) { in aeApiCreate()
105 close(state->portfd); in aeApiFree()
123 static int aeApiAssociate(const char *where, int portfd, int fd, int mask) { in aeApiAssociate() argument
135 rv = port_associate(portfd, PORT_SOURCE_FD, fd, events, in aeApiAssociate()
180 return (aeApiAssociate("aeApiAddEvent", state->portfd, fd, fullmask)); in aeApiAddEvent()
226 if (port_dissociate(state->portfd, PORT_SOURCE_FD, fd) != 0) { in aeApiDelEvent()
230 } else if (aeApiAssociate("aeApiDelEvent", state->portfd, fd, in aeApiDelEvent()
260 if (aeApiAssociate("aeApiPoll", state->portfd, in aeApiPoll()
285 if (port_getn(state->portfd, event, MAX_EVENT_BATCHSZ, &nevents, in aeApiPoll()