Scheduler is now selectable in make menuconfig in kernel hacking.
[projects/modsched/linux.git] / kernel / sched / modsched / framework / include / fw_comm.h
1 #ifndef FW_COMM_H_
2 #define FW_COMM_H_
3
4 /**
5  * Prototypes:
6  *
7  * SCHEDULE:    void (void);
8  * ADMIT:               void (fw_task_t *task);
9  * RELEASE:             void (fw_task_t *task);
10  * EVENT:               void (fw_task_t *task);
11  * EVENT_WAIT:  void (fw_task_t *task);
12  * SUSPEND:             void (fw_task_t *task);
13  * ACTIVATE:    void (fw_task_t *task);
14  *
15  */
16 typedef enum {
17         FW_FIRST,
18         SCHEDULE,
19         ADMIT,
20         RELEASE,
21         EVENT,
22         EVENT_WAIT,
23         SUSPEND,
24         ACTIVATE,
25         FW_LAST
26 } topic_t;
27
28 void fw_subscribe(topic_t topic, void *callback);
29
30 void fw_notify(topic_t topic, void *data);
31
32 void fw_init_comm(void);
33
34 #endif /* FW_COMM_H_ */