Xenomai 3.3.2
Loading...
Searching...
No Matches
pipe.h
1/*
2 * Copyright (C) 2014 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_KERNEL_PIPE_H
19#define _COBALT_UAPI_KERNEL_PIPE_H
20
21#define XNPIPE_IOCTL_BASE 'p'
22
23#define XNPIPEIOC_GET_NRDEV _IOW(XNPIPE_IOCTL_BASE, 0, int)
24#define XNPIPEIOC_IFLUSH _IO(XNPIPE_IOCTL_BASE, 1)
25#define XNPIPEIOC_OFLUSH _IO(XNPIPE_IOCTL_BASE, 2)
26#define XNPIPEIOC_FLUSH XNPIPEIOC_OFLUSH
27#define XNPIPEIOC_SETSIG _IO(XNPIPE_IOCTL_BASE, 3)
28
29#define XNPIPE_NORMAL 0x0
30#define XNPIPE_URGENT 0x1
31
32#define XNPIPE_IFLUSH 0x1
33#define XNPIPE_OFLUSH 0x2
34
35#define XNPIPE_MINOR_AUTO (-1)
36
37#endif /* !_COBALT_UAPI_KERNEL_PIPE_H */