Lines Matching refs:nfds
1104 nvlist_unpack_header(nvlist_t *nvl, const unsigned char *ptr, size_t nfds,
1122 * nvlh_descriptors might be smaller than nfds in embedded nvlists.
1124 if (nvlhdr.nvlh_descriptors > nfds)
1145 nvlist_xunpack(const void *buf, size_t size, const int *fds, size_t nfds,
1164 ptr = nvlist_unpack_header(nvl, ptr, nfds, &isbe, &left);
1190 ptr = nvpair_unpack_nvlist(isbe, nvp, ptr, &left, nfds,
1199 fds, nfds);
1203 &left, fds, nfds);
1223 ptr = nvlist_unpack_header(nvl, ptr, nfds,
1251 ptr = nvlist_unpack_header(tmpnvl, ptr, nfds, &isbe,
1284 size_t datasize, nfds;
1295 fds = nvlist_descriptors(nvl, &nfds);
1309 if (nfds > 0) {
1310 if (fd_send(sock, fds, nfds) == -1)
1329 size_t nfds, size, i;
1338 nfds = (size_t)nvlhdr.nvlh_descriptors;
1353 if (nfds > 0) {
1354 fds = nv_calloc(nfds, sizeof(fds[0]));
1357 if (fd_recv(sock, fds, nfds) == -1)
1361 nvl = nvlist_xunpack(buf, size, fds, nfds, flags);
1364 for (i = 0; i < nfds; i++)