19 #ifndef _COBALT_POSIX_EVENT_H 20 #define _COBALT_POSIX_EVENT_H 22 #include <cobalt/kernel/synch.h> 23 #include <cobalt/uapi/event.h> 24 #include <xenomai/posix/syscall.h> 25 #include <xenomai/posix/process.h> 27 struct cobalt_resources;
28 struct cobalt_process;
35 struct cobalt_event_state *state;
36 struct cobalt_resnode resnode;
39 int __cobalt_event_wait(
struct cobalt_event_shadow __user *u_event,
41 unsigned int __user *u_bits_r,
42 int mode,
const struct timespec *ts);
44 COBALT_SYSCALL_DECL(event_init,
45 (
struct cobalt_event_shadow __user *u_evtsh,
49 COBALT_SYSCALL_DECL(event_wait,
50 (
struct cobalt_event_shadow __user *u_evtsh,
52 unsigned int __user *u_bits_r,
54 const struct timespec __user *u_ts));
56 COBALT_SYSCALL_DECL(event_sync,
57 (
struct cobalt_event_shadow __user *u_evtsh));
59 COBALT_SYSCALL_DECL(event_destroy,
60 (
struct cobalt_event_shadow __user *u_evtsh));
62 COBALT_SYSCALL_DECL(event_inquire,
63 (
struct cobalt_event_shadow __user *u_event,
64 struct cobalt_event_info __user *u_info,
65 pid_t __user *u_waitlist,
68 void cobalt_event_reclaim(
struct cobalt_resnode *node,