Changes in uspace/lib/c/generic/event.c [63f8966:f9061b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/event.c
r63f8966 rf9061b4 35 35 */ 36 36 /** @file 37 */ 37 */ 38 38 39 39 #include <libc.h> 40 40 #include <event.h> 41 41 #include <kernel/ipc/event_types.h> 42 #include <ipc/ipc.h>43 42 44 /** Subscribe forevent notifications.43 /** Subscribe event notifications. 45 44 * 46 * @param evno Event number.47 * @param method Use thismethod for notifying me.45 * @param evno Event type to subscribe. 46 * @param imethod Use this interface and method for notifying me. 48 47 * 49 48 * @return Value returned by the kernel. 49 * 50 50 */ 51 int event_subscribe(event_type_t e , ipcarg_tmethod)51 int event_subscribe(event_type_t evno, sysarg_t imethod) 52 52 { 53 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) e, (sysarg_t) method); 53 return __SYSCALL2(SYS_EVENT_SUBSCRIBE, (sysarg_t) evno, 54 (sysarg_t) imethod); 55 } 56 57 /** Unmask event notifications. 58 * 59 * @param evno Event type to unmask. 60 * 61 * @return Value returned by the kernel. 62 * 63 */ 64 int event_unmask(event_type_t evno) 65 { 66 return __SYSCALL1(SYS_EVENT_UNMASK, (sysarg_t) evno); 54 67 } 55 68
Note:
See TracChangeset
for help on using the changeset viewer.