WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

libxc handles (was Re: [Xen-devel] ring buffer overflow)

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: libxc handles (was Re: [Xen-devel] ring buffer overflow)
From: Tim Deegan <tim@xxxxxxx>
Date: Fri, 7 Oct 2011 16:56:15 +0100
Cc: David Xu <davidxu06@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 07 Oct 2011 08:56:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1318002580.21903.361.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAGjowiTc0NAJbWR-RxwLTrz+bhbAFfvcPKPAB_F8r1ef6__PbA@xxxxxxxxxxxxxx> <1317368064.26672.198.camel@xxxxxxxxxxxxxxxxxxxxxx> <CAGjowiQE_3gTJxK+Ja850QU9g1+97hZ8hAgdv_a4B18jxmCNGw@xxxxxxxxxxxxxx> <1317393663.26672.288.camel@xxxxxxxxxxxxxxxxxxxxxx> <CAGjowiSrPCY50-iBK67nGfOGdK7z1htc58ohtrqJtmutmRRQzQ@xxxxxxxxxxxxxx> <1317394559.26672.293.camel@xxxxxxxxxxxxxxxxxxxxxx> <CAGjowiSkwN9Oz-qevYk2G1NgwBmFOLWFLtT30aBu0SAe=jqtog@xxxxxxxxxxxxxx> <CAGjowiSQO_Hzdbz0FxQK_7ppr-yvBSWYVbzoSUd_RfiWytZKPw@xxxxxxxxxxxxxx> <1318002580.21903.361.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
At 16:49 +0100 on 07 Oct (1318006180), Ian Campbell wrote:
> Stop top posting, I've asked you this before.

Also, please start a new thread for a new question; the subject line of
your email didn't match the contents.

> On Fri, 2011-10-07 at 16:23 +0100, David Xu wrote:
> > Hi,
> > 
> > I want to use the libxc function xc_sched_credit_domain_set( int
> > xc_handle, uint32_t domid, struct xen_domctl_sched_credit *sdom) in a
> > user-level application. But I don't know how to set the value of
> > xc_handle. Is there somebody familiar with it? Thanks.
> 
> You can't use xc_* functions in the kernel, they are userspace.

He's programming in userspace. :)

You need to call xc_interface_open() to get an xc_handle.  Please read
through the rest of xenctrl.h before asking any more coding questions
here.  You could also have found the answer by looking at any of the
other programs in the tools/ directore that use the xc interface. 

Cheers,

Tim.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel