Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 1997 00:35:09 -0800 (PST)
From:      "J. Weatherbee - Senior Systems Architect" <jamil@acroal.com>
To:        hackers@freebsd.org
Subject:   Descriptor vectorized read/write? 
Message-ID:  <Pine.BSF.3.96.971222001036.2544A-100000@acroal.com>
In-Reply-To: <Pine.BSF.3.96.971221234402.2497A-100000@acroal.com>

next in thread | previous in thread | raw e-mail | index | archive | help
And in addition to this, has anyone ever though of implement vectorized
read/write calls that are vectorized across multiple descriptors.  i.e
reading from multiple descriptors into buffers simultaneously, possibly
implemented similarily to the way poll(2) is.

i.e (multiple duplicate fd's with same direction handled the same as
readv/writev scatter io)

---------------------------------------------------------------------------

void mreadv (const struct miovec *miov, int miovcnt);

    struct miovec 
     {
        int fd; /* file descriptor */ 
        int err; /* error status/ return count / initially i/o direction
                  * MREAD/MWRITE */
        char *base; /* base address */
        size_t len; /* io length */       
      };
---------------------------------------------------------------------------






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971222001036.2544A-100000>