This file is indexed.

/usr/include/xenomai/rtdm/rtipc.h is in libxenomai-dev 2.5.5.2-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**
 * @file
 * This file is part of the Xenomai project.
 *
 * @note Copyright (C) 2009 Philippe Gerum <rpm@xenomai.org> 
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 * @ingroup rtipc
 */

/*!
 * @ingroup profiles
 * @defgroup rtipc Real-time IPC Devices
 *
 * @b Profile @b Revision: 1
 * @n
 * @n
 * @par Device Characteristics
 * @n
 * @ref rtdm_device.device_flags "Device Flags": @c RTDM_PROTOCOL_DEVICE @n
 * @n
 * @ref rtdm_device.protocol_family "Protocol Family": @c PF_RTIPC @n
 * @n
 * @ref rtdm_device.socket_type "Socket Type": @c SOCK_DGRAM @n
 * @n
 * @ref rtdm_device.device_class "Device Class": @c RTDM_CLASS_RTIPC @n
 * @n
 */

#ifndef _RTIPC_H

#ifdef __KERNEL__

#include <linux/net.h>
#include <linux/socket.h>
#include <linux/if.h>

#else  /* !__KERNEL__ */

#include <sys/types.h>
#include <sys/socket.h>

#endif /* !__KERNEL__ */

#include <nucleus/types.h>
#include <rtdm/rtdm.h>

/* Address family */
#define AF_RTIPC		111

/* Protocol family */
#define PF_RTIPC		AF_RTIPC

enum {
	IPCPROTO_IPC  = 0,	/* Default protocol (IDDP) */
	IPCPROTO_XDDP = 1,	/* Cross-domain datagram protocol */
	IPCPROTO_IDDP = 2,	/* Intra-domain datagram protocol */
	IPCPROTO_BUFP = 3,	/* Buffer protocol */
	IPCPROTO_MAX
};

 /*
  * Valid port ranges:
  * XDDP = [0..OPT_PIPE_NRDEV-1]
  * IDDP = [0..OPT_IDDP_NRPORT-1]
  * BUFP = [0..OPT_BUFP_NRPORT-1]
  */
typedef int16_t rtipc_port_t;

struct sockaddr_ipc {
	sa_family_t sipc_family; /* AF_RTIPC */
	rtipc_port_t sipc_port;
};

/* RTIPC socket level */
#define SOL_RTIPC  311

/* SOL_RTIPC level option names (via setsockopt) */
#define XDDP_SETSTREAMBUF	1
#define XDDP_SETMONITOR		2
#define XDDP_SETLOCALPOOL	3
#define XDDP_SETLABEL		4
#define XDDP_GETLABEL		5
#define IDDP_SETLOCALPOOL	6
#define IDDP_GETSTALLCOUNT	7
#define IDDP_SETLABEL		8
#define IDDP_GETLABEL		9
#define BUFP_SETBUFFER		10
#define BUFP_SETLABEL		11
#define BUFP_GETLABEL		12

#define XDDP_LABEL_LEN		XNOBJECT_NAME_LEN
#define IDDP_LABEL_LEN		XNOBJECT_NAME_LEN
#define BUFP_LABEL_LEN		XNOBJECT_NAME_LEN

/* XDDP in-kernel monitored events */
#define XDDP_EVTIN	1
#define XDDP_EVTOUT	2
#define XDDP_EVTDOWN	3
#define XDDP_EVTNOBUF	4

#endif /* !_RTIPC_H */