Changeset f9061b4 in mainline for kernel/generic/include/ipc/event.h


Ignore:
Timestamp:
2011-05-16T13:38:04Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4e1a2f5
Parents:
e0f52bf
Message:

add kernel event notification masking (currently used only for EVENT_KLOG)
improve kernel event notification API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/event.h

    re0f52bf rf9061b4  
    5151        /** Counter. */
    5252        size_t counter;
     53        /** Masked flag. */
     54        bool masked;
    5355} event_t;
    5456
    5557extern void event_init(void);
    56 extern sysarg_t sys_event_subscribe(sysarg_t, sysarg_t);
    57 extern bool event_is_subscribed(event_type_t);
    5858extern void event_cleanup_answerbox(answerbox_t *);
    5959
    60 #define event_notify_0(e) \
    61         event_notify((e), 0, 0, 0, 0, 0)
    62 #define event_notify_1(e, a1) \
    63         event_notify((e), (a1), 0, 0, 0, 0)
    64 #define event_notify_2(e, a1, a2) \
    65         event_notify((e), (a1), (a2), 0, 0, 0)
    66 #define event_notify_3(e, a1, a2, a3) \
    67         event_notify((e), (a1), (a2), (a3), 0, 0)
    68 #define event_notify_4(e, a1, a2, a3, a4) \
    69         event_notify((e), (a1), (a2), (a3), (a4), 0)
    70 #define event_notify_5(e, a1, a2, a3, a4, a5) \
    71         event_notify((e), (a1), (a2), (a3), (a4), (a5))
     60#define event_notify_0(e, m) \
     61        event_notify((e), (m), 0, 0, 0, 0, 0)
     62#define event_notify_1(e, m, a1) \
     63        event_notify((e), (m), (a1), 0, 0, 0, 0)
     64#define event_notify_2(e, m, a1, a2) \
     65        event_notify((e), (m), (a1), (a2), 0, 0, 0)
     66#define event_notify_3(e, m, a1, a2, a3) \
     67        event_notify((e), (m), (a1), (a2), (a3), 0, 0)
     68#define event_notify_4(e, m, a1, a2, a3, a4) \
     69        event_notify((e), (m), (a1), (a2), (a3), (a4), 0)
     70#define event_notify_5(e, m, a1, a2, a3, a4, a5) \
     71        event_notify((e), (m), (a1), (a2), (a3), (a4), (a5))
    7272
    73 extern void event_notify(event_type_t, sysarg_t, sysarg_t, sysarg_t,
     73extern int event_notify(event_type_t, bool, sysarg_t, sysarg_t, sysarg_t,
    7474    sysarg_t, sysarg_t);
     75
     76extern sysarg_t sys_event_subscribe(sysarg_t, sysarg_t);
     77extern sysarg_t sys_event_unmask(sysarg_t);
    7578
    7679#endif
Note: See TracChangeset for help on using the changeset viewer.