Changeset 1564c4b in mainline for kernel/generic/include/ipc/event.h
- Timestamp:
- 2011-06-08T19:39:52Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2af29ed
- Parents:
- e686889c (diff), 0eff68e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified kernel/generic/include/ipc/event.h ¶
re686889c r1564c4b 41 41 #include <ipc/ipc.h> 42 42 43 typedef void (*event_callback_t)(void); 44 43 45 /** Event notification structure. */ 44 46 typedef struct { … … 51 53 /** Counter. */ 52 54 size_t counter; 55 56 /** Masked flag. */ 57 bool masked; 58 /** Unmask callback. */ 59 event_callback_t unmask_callback; 53 60 } event_t; 54 61 55 62 extern void event_init(void); 63 extern void event_cleanup_answerbox(answerbox_t *); 64 extern void event_set_unmask_callback(event_type_t, event_callback_t); 65 66 #define event_notify_0(e, m) \ 67 event_notify((e), (m), 0, 0, 0, 0, 0) 68 #define event_notify_1(e, m, a1) \ 69 event_notify((e), (m), (a1), 0, 0, 0, 0) 70 #define event_notify_2(e, m, a1, a2) \ 71 event_notify((e), (m), (a1), (a2), 0, 0, 0) 72 #define event_notify_3(e, m, a1, a2, a3) \ 73 event_notify((e), (m), (a1), (a2), (a3), 0, 0) 74 #define event_notify_4(e, m, a1, a2, a3, a4) \ 75 event_notify((e), (m), (a1), (a2), (a3), (a4), 0) 76 #define event_notify_5(e, m, a1, a2, a3, a4, a5) \ 77 event_notify((e), (m), (a1), (a2), (a3), (a4), (a5)) 78 79 extern int event_notify(event_type_t, bool, sysarg_t, sysarg_t, sysarg_t, 80 sysarg_t, sysarg_t); 81 56 82 extern sysarg_t sys_event_subscribe(sysarg_t, sysarg_t); 57 extern bool event_is_subscribed(event_type_t); 58 extern void event_cleanup_answerbox(answerbox_t *); 59 60 #define event_notify_0(e) \ 61 event_notify((e), 0, 0, 0, 0, 0) 62 #define event_notify_1(e, a1) \ 63 event_notify((e), (a1), 0, 0, 0, 0) 64 #define event_notify_2(e, a1, a2) \ 65 event_notify((e), (a1), (a2), 0, 0, 0) 66 #define event_notify_3(e, a1, a2, a3) \ 67 event_notify((e), (a1), (a2), (a3), 0, 0) 68 #define event_notify_4(e, a1, a2, a3, a4) \ 69 event_notify((e), (a1), (a2), (a3), (a4), 0) 70 #define event_notify_5(e, a1, a2, a3, a4, a5) \ 71 event_notify((e), (a1), (a2), (a3), (a4), (a5)) 72 73 extern void event_notify(event_type_t, sysarg_t, sysarg_t, sysarg_t, 74 sysarg_t, sysarg_t); 83 extern sysarg_t sys_event_unmask(sysarg_t); 75 84 76 85 #endif
Note:
See TracChangeset
for help on using the changeset viewer.