From: Ian Jackson Subject: Re: [PATCH] libxl: document the memory ownership of some functions Date: Fri, 15 Jun 2012 17:23:27 +0100 Message-ID: <20443.24959.81543.348774@mariner.uk.xensource.com> References: <6337a90a11ed2ef48442.1339768347@Solace> <20443.17026.774916.705627@mariner.uk.xensource.com> <1339773566.4705.37.camel@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1339773566.4705.37.camel@Solace> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Dario Faggioli writes ("Re: [PATCH] libxl: document the memory ownership of some functions"): > On Fri, 2012-06-15 at 15:11 +0100, Ian Jackson wrote: > > Perhaps it would be worth writing this comment once near the top, eg: > > > > /* These functions each return (on success) an array of elements, > > * and the length via the int* out parameter. These arrays and > > * their contents come from malloc, and must be freed with the > > * corresponding libxl_THING_list_free function. > > */ > > > > And perhaps change int *nb_domain etc. to int *nb_domain_out. > > I like this, and I'm fine with going for this and respending. Just to be > sure, I'd need to gather all those functions together, moving them from > their current positions in the header... Would that be fine? Moving the functions is fine if it seems like the new order is reasonable. I haven't checked... Ian.