readv: parallel or sequential?
Ivan Voras
ivoras at freebsd.org
Fri Dec 7 03:34:41 PST 2007
Hi,
I found this in readv(2):
For readv() and preadv(), the iovec structure is defined as:
struct iovec {
void *iov_base; /* Base address. */
size_t iov_len; /* Length. */
};
Each iovec entry specifies the base address and length of an area
in mem-
ory where data should be placed. The readv() system call will always
fill an area completely before proceeding to the next.
Does this mean that, in effect, readv() is just a loop of read() calls
(minus syscall overhead)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20071207/f9e8f01f/signature.pgp
More information about the freebsd-fs
mailing list