gdunlap/sched-sim.hg

view sched.h @ 7:e274ac3f81ff

c01: Allow wake to preempt running processes
author George Dunlap <gdunlap@xensource.com>
date Tue Oct 20 18:00:17 2009 +0100 (2009-10-20)
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