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>
27struct cobalt_resources;
35 struct cobalt_event_state *state;
36 struct cobalt_resnode resnode;
39int __cobalt_event_wait(
struct cobalt_event_shadow __user *u_event,
41 unsigned int __user *u_bits_r,
42 int mode,
const struct timespec64 *ts);
44COBALT_SYSCALL_DECL(event_init,
45 (
struct cobalt_event_shadow __user *u_evtsh,
49COBALT_SYSCALL_DECL(event_wait,
50 (
struct cobalt_event_shadow __user *u_evtsh,
52 unsigned int __user *u_bits_r,
54 const struct __kernel_old_timespec __user *u_ts));
56COBALT_SYSCALL_DECL(event_wait64,
57 (
struct cobalt_event_shadow __user *u_evtsh,
59 unsigned int __user *u_bits_r,
61 const struct __kernel_timespec __user *u_ts));
63COBALT_SYSCALL_DECL(event_sync,
64 (
struct cobalt_event_shadow __user *u_evtsh));
66COBALT_SYSCALL_DECL(event_destroy,
67 (
struct cobalt_event_shadow __user *u_evtsh));
69COBALT_SYSCALL_DECL(event_inquire,
70 (
struct cobalt_event_shadow __user *u_event,
71 struct cobalt_event_info __user *u_info,
72 pid_t __user *u_waitlist,
75void cobalt_event_reclaim(
struct cobalt_resnode *node,