Lines Matching defs:nfds
1415 const size_t nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) /
1417 if (nfds == 0)
1420 int * const fdp = kmem_alloc(nfds * sizeof(int), KM_SLEEP);
1425 for (size_t i = 0; i < nfds; i++) {
1452 for (size_t i = 0; i < nfds; i++) {
1481 for (size_t i = 0; i < nfds; i++) {
1509 cm->cmsg_len = CMSG_LEN(nfds * sizeof(int));
1510 rights->m_len = CMSG_SPACE(nfds * sizeof(int));
1515 for (size_t i = 0; i < nfds; i++)
1525 kmem_free(fdp, nfds * sizeof(int));
1547 int nfds, error;
1563 nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) / sizeof(int);
1566 for (i = 0; i < nfds; i++) {
1570 nfds = i;
1579 nfds = i;
1586 newcm = malloc(CMSG_SPACE(nfds * sizeof(file_t *)), M_MBUF, M_WAITOK);
1601 fdp = (int *)CMSG_DATA(cm) + nfds;
1602 rp = files + nfds;
1603 for (i = 0; i < nfds; i++) {
1617 for (i = 0; i < nfds; i++) {
1629 MEXTADD(control, newcm, CMSG_SPACE(nfds * sizeof(file_t *)),
1636 cm->cmsg_len = CMSG_LEN(nfds * sizeof(file_t *));
1637 control->m_len = CMSG_SPACE(nfds * sizeof(file_t *));