gdunlap@4: #ifndef _SCHED_H gdunlap@4: #define _SCHED_H gdunlap@4: gdunlap@4: struct sched_ops { gdunlap@4: void (*sched_init)(void); gdunlap@4: void (*vm_init)(int vid); gdunlap@4: void (*wake)(int time, int vid); gdunlap@4: struct vm* (*schedule)(int time, int pid); gdunlap@4: }; gdunlap@4: gdunlap@4: struct scheduler { gdunlap@4: char *name; gdunlap@4: char *desc; gdunlap@4: struct sched_ops ops; gdunlap@4: }; gdunlap@4: gdunlap@4: extern struct scheduler *schedulers[]; gdunlap@4: gdunlap@4: #endif