Lines Matching refs:niov
595 iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
602 p = (struct physical *)iov[(*niov)++].iov_base;
642 p->link.stats.total.in.SampleOctets = (long long *)iov[(*niov)++].iov_base;
643 p->link.stats.total.out.SampleOctets = (long long *)iov[(*niov)++].iov_base;
651 p->handler = (*devices[h].iov2device)(type, p, iov, niov, maxiov,
655 free(iov[(*niov)++].iov_base);
688 physical2iov(struct physical *p, struct iovec *iov, int *niov, int maxiov,
717 if (*niov + 2 >= maxiov) {
725 iov[*niov].iov_base = (void *)p;
726 iov[*niov].iov_len = sizeof *p;
727 (*niov)++;
729 iov[*niov].iov_base = p ? (void *)p->link.stats.total.in.SampleOctets : NULL;
730 iov[*niov].iov_len = SAMPLE_PERIOD * sizeof(long long);
731 (*niov)++;
732 iov[*niov].iov_base = p ? (void *)p->link.stats.total.out.SampleOctets : NULL;
733 iov[*niov].iov_len = SAMPLE_PERIOD * sizeof(long long);
734 (*niov)++;
739 (*h->device2iov)(h, iov, niov, maxiov, auxfd, nauxfd);
741 if ((iov[*niov].iov_base = malloc(sz)) == NULL) {
746 memcpy(iov[*niov].iov_base, h, sizeof *h);
747 iov[*niov].iov_len = sz;
748 (*niov)++;
751 iov[*niov].iov_base = NULL;
752 iov[*niov].iov_len = sz;
753 (*niov)++;