gdunlap/sched-sim.hg

view 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
line source
1 #ifndef _SCHED_H
2 #define _SCHED_H
4 struct sched_ops {
5 void (*sched_init)(void);
6 void (*vm_init)(int vid);
7 void (*wake)(int time, int vid);
8 struct vm* (*schedule)(int time, int pid);
9 };
11 struct scheduler {
12 char *name;
13 char *desc;
14 struct sched_ops ops;
15 };
17 extern struct scheduler *schedulers[];
19 #endif