Changes in uspace/lib/c/generic/event.c [ffa2c8ef:9bf51e64] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/event.c
rffa2c8ef r9bf51e64 39 39 #include <libc.h> 40 40 #include <event.h> 41 #include <kernel/ipc/event_types.h>42 41 43 /** Subscribe forevent notifications.42 /** Subscribe event notifications. 44 43 * 45 * @param evno Event number.46 * @param method Use thismethod for notifying me.44 * @param evno Event type to subscribe. 45 * @param imethod Use this interface and method for notifying me. 47 46 * 48 47 * @return Value returned by the kernel. 48 * 49 49 */ 50 int event_subscribe(event_type_t e , sysarg_tmethod)50 int event_subscribe(event_type_t evno, sysarg_t imethod) 51 51 { 52 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) e, (sysarg_t) method); 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); 53 77 } 54 78
Note:
See TracChangeset
for help on using the changeset viewer.