From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH] libxl: Document device parameter of libxl_device__add functions Date: Tue, 18 Nov 2014 13:19:27 -0500 Message-ID: <20141118181927.GA24283@laptop.dumpdata.com> References: <1416330461-11985-1-git-send-email-euan.harris@citrix.com> <21611.34164.318838.773459@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21611.34164.318838.773459@mariner.uk.xensource.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: Ian Jackson Cc: Wei Liu , Euan Harris , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Nov 18, 2014 at 05:44:20PM +0000, Ian Jackson wrote: > Euan Harris writes ("[PATCH] libxl: Document device parameter of libxl_device__add functions"): > > The device parameter of libxl_device__add is an in/out parameter. > > Unspecified fields are filled in with appropriate values for the created > > device when the function returns. Document this behaviour. > > Thanks. > > Acked-by: Ian Jackson > > Konrad, this should go into 4.5 IMO because it's a doc comment > describing existing behaviour which we want everyone to rely on. Release-Acked-by: Konrad Rzeszutek Wilk > > Ian. > > > Signed-off-by: Euan Harris > > --- > > tools/libxl/libxl.h | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h > > index c3451bd..41d6e8d 100644 > > --- a/tools/libxl/libxl.h > > +++ b/tools/libxl/libxl.h > > @@ -1109,6 +1109,10 @@ void libxl_vtpminfo_list_free(libxl_vtpminfo *, int nr_vtpms); > > * domain to connect to the device and therefore cannot block on the > > * guest. > > * > > + * device is an in/out parameter: fields left unspecified when the > > + * structure is passed in are filled in with appropriate values for > > + * the device created. > > + * > > * libxl_device__remove(ctx, domid, device): > > * > > * Removes the given device from the specified domain by performing > > -- > > 1.9.3 > >