Changes in kernel/generic/src/ipc/event.c [0fe52ef:5d0500c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/event.c
r0fe52ef r5d0500c 81 81 } 82 82 83 void event_task_init(task_t *t ask)83 void event_task_init(task_t *t) 84 84 { 85 85 for (unsigned int i = EVENT_END; i < EVENT_TASK_END; i++) 86 event_initialize(evno2event(i, t ask));86 event_initialize(evno2event(i, t)); 87 87 } 88 88 … … 130 130 } 131 131 132 void event_task_set_unmask_callback(task_t *t ask, event_task_type_t evno,132 void event_task_set_unmask_callback(task_t *t, event_task_type_t evno, 133 133 event_callback_t callback) 134 134 { … … 136 136 ASSERT(evno < EVENT_TASK_END); 137 137 138 _event_set_unmask_callback(evno2event(evno, t ask), callback);138 _event_set_unmask_callback(evno2event(evno, t), callback); 139 139 } 140 140 … … 160 160 IPC_SET_ARG4(call->data, a4); 161 161 IPC_SET_ARG5(call->data, a5); 162 163 call->data.task_id = TASK ? TASK->taskid : 0;164 162 165 163 irq_spinlock_lock(&event->answerbox->irq_lock, true); … … 213 211 /** Send per-task kernel notification event 214 212 * 215 * @param t askDestination task.213 * @param t Destination task. 216 214 * @param evno Event type. 217 215 * @param mask Mask further notifications after a successful … … 231 229 * 232 230 */ 233 int event_task_notify(task_t *t ask, event_task_type_t evno, bool mask,234 sysarg_t a 1, sysarg_t a2, sysarg_t a3, sysarg_t a4, sysarg_t a5)231 int event_task_notify(task_t *t, event_task_type_t evno, bool mask, sysarg_t a1, 232 sysarg_t a2, sysarg_t a3, sysarg_t a4, sysarg_t a5) 235 233 { 236 234 ASSERT(evno >= (int) EVENT_END); 237 235 ASSERT(evno < EVENT_TASK_END); 238 236 239 return event_enqueue(evno2event(evno, t ask), mask, a1, a2, a3, a4, a5);237 return event_enqueue(evno2event(evno, t), mask, a1, a2, a3, a4, a5); 240 238 } 241 239
Note:
See TracChangeset
for help on using the changeset viewer.