gdunlap/sched-sim.hg

annotate 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
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