Date: Fri, 07 Dec 2007 12:39:56 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-fs@freebsd.org Subject: readv: parallel or sequential? Message-ID: <fjbb3v$n60$1@ger.gmane.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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)?
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
iD8DBQFHWTETldnAQVacBcgRAhuZAKDyooMshocd2zxSBR9RKgz8kMrQcgCdFAon
EGLoGWs7t9y9eUKAoojvAjw=
=vs5U
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fjbb3v$n60$1>
