|
|
|
|
|
|
|
|
|
|
xen-devel
libxc handles (was Re: [Xen-devel] ring buffer overflow)
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
|
|
|
|
|