From: Ian Campbell Subject: Re: [PATCH 23/29] tools/libxl: Extend datacopier to support reading into a buffer Date: Thu, 11 Sep 2014 13:41:21 +0100 Message-ID: <1410439281.25388.15.camel@kazak.uk.xensource.com> References: <1410369067-1330-1-git-send-email-andrew.cooper3@citrix.com> <1410369067-1330-24-git-send-email-andrew.cooper3@citrix.com> <1410437035.25388.5.camel@kazak.uk.xensource.com> <541194F9.5070503@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <541194F9.5070503@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ross Lagerwall Cc: Andrew Cooper , Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2014-09-11 at 13:26 +0100, Ross Lagerwall wrote: > On 09/11/2014 01:03 PM, Ian Campbell wrote: > > On Wed, 2014-09-10 at 18:11 +0100, Andrew Cooper wrote: > >> From: Ross Lagerwall > >> > >> Implement a read-only mode for libxl__datacopier. > > > > Read-only in the sense that it only reads, or in the sense that one may > > only read from it? > > It only reads rather than reading and writing. > > > > > What is the purpose of this mode? > > > > Where does the data go? > > > > This mode allows data from an fd to be read into memory using libxl's > async framework. The data goes into the user-allocated > libxl__datacopier_state.readbuf. OK. I think you can probably guess what I'm going to say. In addition to the commit log I'm sure that the doc comments in the headers must needs some updating for all this new functionality (here and the surrounding patches). Ian.