From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [RFC Patch v4 7/9] correct xc_domain_save()'s return value Date: Mon, 22 Sep 2014 10:13:34 +0200 Message-ID: <20140922081334.GA16085@aepfle.de> References: <1411365561-29242-1-git-send-email-wency@cn.fujitsu.com> <1411365561-29242-8-git-send-email-wency@cn.fujitsu.com> <20140922073053.GA6584@aepfle.de> <541FD0F4.8080400@cn.fujitsu.com> <20140922074625.GA9788@aepfle.de> <541FD88B.5080209@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <541FD88B.5080209@cn.fujitsu.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: Wen Congyang Cc: Ian Campbell , Ian Jackson , Jiang Yunhong , Dong Eddie , xen devel , Yang Hongyang , Lai Jiangshan List-Id: xen-devel@lists.xenproject.org On Mon, Sep 22, Wen Congyang wrote: > The callbacks may be implemented in libxl, which is another process. > xc_domain_save() is a public API, and the caller may forget to set > the errno... > > So we cannot assume that the callbacks has set the errno Then the caller is using xc_domain_save incorrectly. Looks like there is no API documentation, other than the source code. Olaf