From: Ian Jackson Subject: Re: [PATCH] libxl: mark internal functions hidden Date: Thu, 12 Apr 2012 12:18:50 +0100 Message-ID: <20358.47642.750789.96463@mariner.uk.xensource.com> References: <1334219781.12209.256.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1334219781.12209.256.camel@dagon.hellion.org.uk> 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 Campbell Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH] libxl: mark internal functions hidden"): > BTW, I noticed a bunch of libxl__ functions which take a ctx instead of > a gc while doing this. Yes, there are a few. In some cases this is to make it easier to call them from infrastructure or macros which doesn't necessarily have a gc, eg the logging functions, and the way that libxl__ao_create obviously is _creating_ the gc (as well as the ao) for its caller. In other cases it's just to avoid needlessly pratting about with GC_INIT. (Note that in the past, that pratting about was considerably more verbose.) It isn't in general a bug to have nested calls to GC_INIT. Ian.