Home
last modified time | relevance | path

Searched refs:iovcnt (Results 1 – 3 of 3) sorted by relevance

/tools/libs/ctrl/
A Dxc_private.c638 int writev_exact(int fd, const struct iovec *iov, int iovcnt) in writev_exact() argument
642 for ( i = 0; i < iovcnt; ++i ) in writev_exact()
652 int writev_exact(int fd, const struct iovec *iov, int iovcnt) in writev_exact() argument
658 while ( iov_idx < iovcnt ) in writev_exact()
668 if ( ++iov_idx == iovcnt ) in writev_exact()
671 len = writev(fd, &iov[iov_idx], min(iovcnt - iov_idx, IOV_MAX)); in writev_exact()
683 while ( (len > 0) && (iov_idx < iovcnt) ) in writev_exact()
693 local_iov = malloc(iovcnt * sizeof(*iov)); in writev_exact()
701 iov = memcpy(local_iov, iov, iovcnt * sizeof(*iov)); in writev_exact()
A Dxc_private.h386 int writev_exact(int fd, const struct iovec *iov, int iovcnt);
/tools/libs/guest/
A Dxg_sr_save.c99 struct iovec *iov = NULL; int iovcnt = 0; in write_batch() local
240 iovcnt = 4; in write_batch()
248 iov[iovcnt].iov_base = guest_data[i]; in write_batch()
249 iov[iovcnt].iov_len = PAGE_SIZE; in write_batch()
250 iovcnt++; in write_batch()
256 if ( writev_exact(ctx->fd, iov, iovcnt) ) in write_batch()

Completed in 8 milliseconds