Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 5 of 5) sorted by relevance

/unit/src/
H A Dnxt_select_engine.c71 engine->u.select.nfds = -1; in nxt_select_create()
147 if (engine->u.select.nfds < fd) { in nxt_select_enable_read()
148 engine->u.select.nfds = fd; in nxt_select_enable_read()
174 if (engine->u.select.nfds < fd) { in nxt_select_enable_write()
175 engine->u.select.nfds = fd; in nxt_select_enable_write()
282 int nevents, nfds, found; in nxt_select_poll() local
299 for (i = engine->u.select.nfds; i >= 0; i--) { in nxt_select_poll()
301 engine->u.select.nfds = i; in nxt_select_poll()
311 nfds = engine->u.select.nfds + 1; in nxt_select_poll()
315 nevents = select(nfds, &engine->u.select.work_read_fd_set, in nxt_select_poll()
[all …]
H A Dnxt_socket_msg.h75 int nfds; in nxt_socket_msg_oob_init() local
97 nfds = (fds[0] != -1 ? 1 : 0) + (fds[1] != -1 ? 1 : 0); in nxt_socket_msg_oob_init()
99 if (nfds == 0) { in nxt_socket_msg_oob_init()
107 cmsg->cmsg_len = CMSG_LEN(nfds * sizeof(int)); in nxt_socket_msg_oob_init()
120 nxt_memcpy(CMSG_DATA(cmsg), fds, nfds * sizeof(int)); in nxt_socket_msg_oob_init()
122 oob->size += CMSG_SPACE(nfds * sizeof(int)); in nxt_socket_msg_oob_init()
H A Dnxt_poll_engine.c396 if (engine->u.poll.nfds >= engine->u.poll.max_nfds) { in nxt_poll_set_add()
414 phe->index = engine->u.poll.nfds; in nxt_poll_set_add()
417 pfd = &engine->u.poll.set[engine->u.poll.nfds++]; in nxt_poll_set_add()
463 nxt_uint_t index, nfds; in nxt_poll_set_delete() local
482 engine->u.poll.nfds--; in nxt_poll_set_delete()
483 nfds = engine->u.poll.nfds; in nxt_poll_set_delete()
485 if (index != nfds) { in nxt_poll_set_delete()
486 engine->u.poll.set[index] = engine->u.poll.set[nfds]; in nxt_poll_set_delete()
519 engine->u.poll.nfds, timeout); in nxt_poll()
521 nevents = poll(engine->u.poll.set, engine->u.poll.nfds, timeout); in nxt_poll()
[all …]
H A Dnxt_event_engine.h316 nxt_uint_t nfds; member
331 int nfds; member
H A Dnxt_unit.c4598 nxt_uint_t nfds; in nxt_unit_read_buf() local
4648 nfds = 2; in nxt_unit_read_buf()
4651 nfds = 1; in nxt_unit_read_buf()
4660 nevents = poll(fds, nfds, -1); in nxt_unit_read_buf()