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