gdunlap/sched-sim.hg

view sched.h @ 4:f7c1a67cf976

Oops, forgot to include sim.h
author George Dunlap <gdunlap@xensource.com>
date Mon Oct 19 20:12:54 2009 +0100 (2009-10-19)
parents
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