Lines Matching defs:maxsocks
418 unsigned int maxsocks;
603 unsigned int maxsocks);
1084 INSIST(fd >= 0 && fd < (int)manager->maxsocks);
2254 INSIST(sock->fd >= -1 && sock->fd < (int)manager->maxsocks);
2683 if (sock->fd >= (int)manager->maxsocks) {
2690 sock->fd, manager->maxsocks);
3141 if (fd < 0 || (unsigned int)fd >= manager->maxsocks)
3286 REQUIRE(sock->fd >= 0 && sock->fd < (int)sock->manager->maxsocks);
3666 } else if (fd >= (int)manager->maxsocks) {
3673 fd, manager->maxsocks);
4083 REQUIRE(events[i].ident < manager->maxsocks);
4120 REQUIRE(events[i].data.fd < (int)manager->maxsocks);
4168 REQUIRE(events[i].fd < (int)manager->maxsocks);
4194 REQUIRE(maxfd <= (int)manager->maxsocks);
4505 * it must have maxsocks entries (not nevents).
4508 manager->maxsocks);
4514 memset(manager->fdpollinfo, 0, sizeof(pollinfo_t) * manager->maxsocks);
4527 sizeof(pollinfo_t) * manager->maxsocks);
4537 sizeof(pollinfo_t) * manager->maxsocks);
4550 manager->fd_bufsize = howmany(manager->maxsocks, NFDBITS) *
4626 sizeof(pollinfo_t) * manager->maxsocks);
4646 unsigned int maxsocks)
4659 /* Don't allow maxsocks to be updated */
4660 if (maxsocks > 0 && socketmgr->maxsocks != maxsocks)
4669 if (maxsocks == 0)
4670 maxsocks = ISC_SOCKET_MAXSOCKETS;
4678 manager->maxsocks = maxsocks;
4682 manager->maxsocks * sizeof(isc__socket_t *));
4687 manager->fdstate = isc_mem_get(mctx, manager->maxsocks * sizeof(int));
4693 manager->epoll_events = isc_mem_get(mctx, (manager->maxsocks *
4699 memset(manager->epoll_events, 0, manager->maxsocks * sizeof(uint32_t));
4707 memset(manager->fds, 0, manager->maxsocks * sizeof(isc_socket_t *));
4771 memset(manager->fdstate, 0, manager->maxsocks * sizeof(int));
4825 manager->maxsocks * sizeof(uint32_t));
4830 manager->maxsocks * sizeof(int));
4834 manager->maxsocks * sizeof(isc_socket_t *));
4847 *nsockp = manager->maxsocks;
4937 for (i = 0; i < (int)manager->maxsocks; i++)
4943 manager->maxsocks * sizeof(uint32_t));
4946 manager->maxsocks * sizeof(isc__socket_t *));
4948 manager->maxsocks * sizeof(int));