Changes in kernel/generic/include/ipc/event.h [97d42d5:c2cf033] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/event.h
r97d42d5 rc2cf033 36 36 #define KERN_EVENT_H_ 37 37 38 #include < ipc/event_types.h>38 #include <abi/ipc/event.h> 39 39 #include <typedefs.h> 40 40 #include <synch/spinlock.h> 41 41 #include <ipc/ipc.h> 42 42 43 typedef void (*event_callback_t)(void); 43 struct task; 44 45 typedef void (*event_callback_t)(void *); 44 46 45 47 /** Event notification structure. */ … … 61 63 62 64 extern void event_init(void); 65 extern void event_task_init(struct task *); 63 66 extern void event_cleanup_answerbox(answerbox_t *); 64 67 extern void event_set_unmask_callback(event_type_t, event_callback_t); 68 extern void event_task_set_unmask_callback(struct task *, event_task_type_t, 69 event_callback_t); 65 70 66 71 #define event_notify_0(e, m) \ … … 77 82 event_notify((e), (m), (a1), (a2), (a3), (a4), (a5)) 78 83 84 #define event_task_notify_0(t, e, m) \ 85 event_task_notify((t), (e), (m), 0, 0, 0, 0, 0) 86 #define event_task_notify_1(t, e, m, a1) \ 87 event_task_notify((t), (e), (m), (a1), 0, 0, 0, 0) 88 #define event_task_notify_2(t, e, m, a1, a2) \ 89 event_task_notify((t), (e), (m), (a1), (a2), 0, 0, 0) 90 #define event_task_notify_3(t, e, m, a1, a2, a3) \ 91 event_task_notify((t), (e), (m), (a1), (a2), (a3), 0, 0) 92 #define event_task_notify_4(t, e, m, a1, a2, a3, a4) \ 93 event_task_notify((t), (e), (m), (a1), (a2), (a3), (a4), 0) 94 #define event_task_notify_5(t, e, m, a1, a2, a3, a4, a5) \ 95 event_task_notify((t), (e), (m), (a1), (a2), (a3), (a4), (a5)) 96 79 97 extern int event_notify(event_type_t, bool, sysarg_t, sysarg_t, sysarg_t, 80 98 sysarg_t, sysarg_t); 99 extern int event_task_notify(struct task *, event_task_type_t, bool, sysarg_t, sysarg_t, 100 sysarg_t, sysarg_t, sysarg_t); 81 101 82 102 extern sysarg_t sys_event_subscribe(sysarg_t, sysarg_t);
Note:
See TracChangeset
for help on using the changeset viewer.