Changes in kernel/generic/src/ipc/event.c [b7fd2a0:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/event.c
rb7fd2a0 r63e27ef 138 138 } 139 139 140 static errno_t event_enqueue(event_t *event, bool mask, sysarg_t a1, sysarg_t a2,140 static int event_enqueue(event_t *event, bool mask, sysarg_t a1, sysarg_t a2, 141 141 sysarg_t a3, sysarg_t a4, sysarg_t a5) 142 142 { 143 errno_t res;143 int res; 144 144 145 145 spinlock_lock(&event->lock); … … 206 206 * 207 207 */ 208 errno_t event_notify(event_type_t evno, bool mask, sysarg_t a1, sysarg_t a2,208 int event_notify(event_type_t evno, bool mask, sysarg_t a1, sysarg_t a2, 209 209 sysarg_t a3, sysarg_t a4, sysarg_t a5) 210 210 { … … 234 234 * 235 235 */ 236 errno_t event_task_notify(task_t *task, event_task_type_t evno, bool mask,236 int event_task_notify(task_t *task, event_task_type_t evno, bool mask, 237 237 sysarg_t a1, sysarg_t a2, sysarg_t a3, sysarg_t a4, sysarg_t a5) 238 238 { … … 255 255 * 256 256 */ 257 static errno_t event_subscribe(event_t *event, sysarg_t imethod,257 static int event_subscribe(event_t *event, sysarg_t imethod, 258 258 answerbox_t *answerbox) 259 259 { 260 errno_t res;260 int res; 261 261 262 262 spinlock_lock(&event->lock); … … 286 286 * 287 287 */ 288 static errno_t event_unsubscribe(event_t *event, answerbox_t *answerbox)289 { 290 errno_t res;288 static int event_unsubscribe(event_t *event, answerbox_t *answerbox) 289 { 290 int res; 291 291 292 292 spinlock_lock(&event->lock); … … 338 338 * 339 339 */ 340 sys _errno_t sys_ipc_event_subscribe(sysarg_t evno, sysarg_t imethod)340 sysarg_t sys_ipc_event_subscribe(sysarg_t evno, sysarg_t imethod) 341 341 { 342 342 if (evno >= EVENT_TASK_END) 343 343 return ELIMIT; 344 344 345 return (sys _errno_t) event_subscribe(evno2event(evno, TASK),345 return (sysarg_t) event_subscribe(evno2event(evno, TASK), 346 346 (sysarg_t) imethod, &TASK->answerbox); 347 347 } … … 357 357 * 358 358 */ 359 sys _errno_t sys_ipc_event_unsubscribe(sysarg_t evno)359 sysarg_t sys_ipc_event_unsubscribe(sysarg_t evno) 360 360 { 361 361 if (evno >= EVENT_TASK_END) 362 362 return ELIMIT; 363 363 364 return (sys _errno_t) event_unsubscribe(evno2event(evno, TASK),364 return (sysarg_t) event_unsubscribe(evno2event(evno, TASK), 365 365 &TASK->answerbox); 366 366 } … … 379 379 * 380 380 */ 381 sys _errno_t sys_ipc_event_unmask(sysarg_t evno)381 sysarg_t sys_ipc_event_unmask(sysarg_t evno) 382 382 { 383 383 if (evno >= EVENT_TASK_END)
Note:
See TracChangeset
for help on using the changeset viewer.