gdunlap/sched-sim.hg

annotate sched.h @ 17:03ad237559b4

Fix-up options, scheduler list
author George Dunlap <george.dunlap@eu.citrix.com>
date Fri Jul 16 11:58:53 2010 +0100 (2010-07-16)
parents f7c1a67cf976
children
rev   line source
gdunlap@4 1 #ifndef _SCHED_H
gdunlap@4 2 #define _SCHED_H
gdunlap@4 3
gdunlap@4 4 struct sched_ops {
gdunlap@4 5 void (*sched_init)(void);
gdunlap@4 6 void (*vm_init)(int vid);
gdunlap@4 7 void (*wake)(int time, int vid);
gdunlap@4 8 struct vm* (*schedule)(int time, int pid);
gdunlap@4 9 };
gdunlap@4 10
gdunlap@4 11 struct scheduler {
gdunlap@4 12 char *name;
gdunlap@4 13 char *desc;
gdunlap@4 14 struct sched_ops ops;
gdunlap@4 15 };
gdunlap@4 16
gdunlap@4 17 extern struct scheduler *schedulers[];
gdunlap@4 18
gdunlap@4 19 #endif