From owner-freebsd-hackers Mon Dec 22 03:40:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA17953 for hackers-outgoing; Mon, 22 Dec 1997 03:40:09 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA17944 for ; Mon, 22 Dec 1997 03:40:05 -0800 (PST) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id GAA01259; Mon, 22 Dec 1997 06:39:43 -0500 (EST) (envelope-from toor) From: "John S. Dyson" Message-Id: <199712221139.GAA01259@dyson.iquest.net> Subject: Re: Descriptor vectorized read/write? In-Reply-To: from "J. Weatherbee - Senior Systems Architect" at "Dec 22, 97 00:35:09 am" To: jamil@acroal.com (J. Weatherbee - Senior Systems Architect) Date: Mon, 22 Dec 1997 06:39:43 -0500 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In -current, we have implemented POSIX AIO, it does what you need. It is super-efficient on raw devices (I wonder what that is for??? :-)). J. Weatherbee - Senior Systems Architect said: > 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 */ > }; > --------------------------------------------------------------------------- > -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig.