Skip site navigation (1)Skip section navigation (2)
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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig417C87F845D917AA452969FD
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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 alway=
s
     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)?


--------------enig417C87F845D917AA452969FD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHWTETldnAQVacBcgRAhuZAKDyooMshocd2zxSBR9RKgz8kMrQcgCdFAon
EGLoGWs7t9y9eUKAoojvAjw=
=vs5U
-----END PGP SIGNATURE-----

--------------enig417C87F845D917AA452969FD--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fjbb3v$n60$1>