Xenomai 3.3.2
Loading...
Searching...
No Matches
monitor.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_MONITOR_H
19#define _COBALT_UAPI_MONITOR_H
20
21#include <cobalt/uapi/kernel/types.h>
22
23struct cobalt_monitor_state {
24 atomic_t owner;
25 __u32 flags;
26#define COBALT_MONITOR_GRANTED 0x01
27#define COBALT_MONITOR_DRAINED 0x02
28#define COBALT_MONITOR_SIGNALED 0x03 /* i.e. GRANTED or DRAINED */
29#define COBALT_MONITOR_BROADCAST 0x04
30#define COBALT_MONITOR_PENDED 0x08
31};
32
33struct cobalt_monitor;
34
35struct cobalt_monitor_shadow {
36 __u32 state_offset;
37 __u32 flags;
38 xnhandle_t handle;
39#define COBALT_MONITOR_SHARED 0x1
40#define COBALT_MONITOR_WAITGRANT 0x0
41#define COBALT_MONITOR_WAITDRAIN 0x1
42};
43
44typedef struct cobalt_monitor_shadow cobalt_monitor_t;
45
46#endif /* !_COBALT_UAPI_MONITOR_H */
Copyright © 2011 Gilles Chanteperdrix gilles.chanteperdrix@xenomai.org.
Definition atomic.h:24