Xenomai 3.3.2
Loading...
Searching...
No Matches
event.h
1/*
2 * Copyright (C) 2013 Philippe Gerum <rpm@xenomai.org>.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17 */
18#ifndef _COBALT_UAPI_EVENT_H
19#define _COBALT_UAPI_EVENT_H
20
21#include <cobalt/uapi/kernel/types.h>
22
23struct cobalt_event_state {
24 __u32 value;
25 __u32 flags;
26#define COBALT_EVENT_PENDED 0x1
27 __u32 nwaiters;
28};
29
30struct cobalt_event;
31
32/* Creation flags. */
33#define COBALT_EVENT_FIFO 0x0
34#define COBALT_EVENT_PRIO 0x1
35#define COBALT_EVENT_SHARED 0x2
36
37/* Wait mode. */
38#define COBALT_EVENT_ALL 0x0
39#define COBALT_EVENT_ANY 0x1
40
41struct cobalt_event_shadow {
42 __u32 state_offset;
43 __u32 flags;
44 xnhandle_t handle;
45};
46
47struct cobalt_event_info {
48 __u32 value;
49 __s32 flags;
50 __s32 nrwait;
51};
52
53typedef struct cobalt_event_shadow cobalt_event_t;
54
55#endif /* !_COBALT_UAPI_EVENT_H */