All of lore.kernel.org
 help / color / mirror / Atom feed
* libxl.c::macro definition::LIBXL_SCHEDULER_SEDF
@ 2014-12-12 22:49 Jie Shen
  2014-12-15  9:56 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Jie Shen @ 2014-12-12 22:49 UTC (permalink / raw)
  To: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1454 bytes --]

Hello Gurus,

I am working on a project to change code of xen,
Unfortunately I can not find the macro def of : LIBXL_SCHEDULER_****

if C compiler not finds it ,it will trigger  an error " XXX not defined"

But where is it ? I search all c and h files.
Could you please help me to check it ?


Jie Shen

===========================================


int libxl_domain_sched_params_set(libxl_ctx *ctx, uint32_t domid,
                                  const libxl_domain_sched_params *scinfo)
{
    GC_INIT(ctx);
    libxl_scheduler sched = scinfo->sched;
    int ret;

    if (sched == LIBXL_SCHEDULER_UNKNOWN)
        sched = libxl__domain_scheduler(gc, domid);

    switch (sched) {
    case LIBXL_SCHEDULER_SEDF:
        ret=sched_sedf_domain_set(gc, domid, scinfo);
        break;
    case LIBXL_SCHEDULER_CREDIT:
        ret=sched_credit_domain_set(gc, domid, scinfo);
        break;
    case LIBXL_SCHEDULER_CREDIT2:
        ret=sched_credit2_domain_set(gc, domid, scinfo);
        break;
    case LIBXL_SCHEDULER_RTGLOBAL:
        ret=sched_rtglobal_domain_set(gc, domid, scinfo);
        break;
    case LIBXL_SCHEDULER_RTPARTITION:
        ret=sched_rtpartition_domain_set(gc, domid, scinfo);
        break;
    case LIBXL_SCHEDULER_ARINC653:
        ret=sched_arinc653_domain_set(gc, domid, scinfo);
        break;
    default:
        LOG(ERROR, "Unknown scheduler");
        ret=ERROR_INVAL;
        break;
    }

    GC_FREE;
    return ret;

[-- Attachment #1.2: Type: text/html, Size: 2197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-15  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-12 22:49 libxl.c::macro definition::LIBXL_SCHEDULER_SEDF Jie Shen
2014-12-15  9:56 ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.