Changes in uspace/lib/c/generic/event.c [9bf51e64:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/event.c
r9bf51e64 rffa2c8ef 39 39 #include <libc.h> 40 40 #include <event.h> 41 #include <kernel/ipc/event_types.h> 41 42 42 /** Subscribe event notifications.43 /** Subscribe for event notifications. 43 44 * 44 * @param evno Event type to subscribe.45 * @param imethod Use this interface andmethod for notifying me.45 * @param evno Event number. 46 * @param method Use this method for notifying me. 46 47 * 47 48 * @return Value returned by the kernel. 48 *49 49 */ 50 int event_subscribe(event_type_t e vno, sysarg_t imethod)50 int event_subscribe(event_type_t e, sysarg_t method) 51 51 { 52 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno, 53 (sysarg_t) imethod); 54 } 55 56 int event_task_subscribe(event_task_type_t evno, sysarg_t imethod) 57 { 58 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno, 59 (sysarg_t) imethod); 60 } 61 62 /** Unmask event notifications. 63 * 64 * @param evno Event type to unmask. 65 * 66 * @return Value returned by the kernel. 67 * 68 */ 69 int event_unmask(event_type_t evno) 70 { 71 return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno); 72 } 73 74 int event_task_unmask(event_task_type_t evno) 75 { 76 return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno); 52 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) e, (sysarg_t) method); 77 53 } 78 54
Note:
See TracChangeset
for help on using the changeset viewer.