This file is indexed.

/usr/include/rtai/rtai_registry.h is in librtai-dev 3.8.1-4build1.

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
/**
 * @ingroup lxrt
 * @file
 *
 * @author Paolo Mantegazza
 *
 * @note Copyright &copy; 1999  Paolo Mantegazza <mantegazza@aero.polimi.it>,
 * extensions for user space modules are jointly copyrighted (2000) with:
 *            Pierre Cloutier <pcloutier@poseidoncontrols.com>,
 *     	Steve Papacharalambous <stevep@zentropix.com>.
 *
 * 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.
 */

#ifndef _RTAI_REGISTRY_H
#define _RTAI_REGISTRY_H

#include <rtai_nam2num.h>

struct task_struct;

struct rt_registry_entry {
	unsigned long name;	 // Numerical representation of resource name
	void *adr;		 // Physical rt memory address of resource
	struct task_struct *tsk; // Linux task owner of the resource
	int type;		 // Type of resource
        unsigned short count;	 // Usage registry
	unsigned short alink;
	unsigned short nlink;
};

#define MAX_SLOTS  CONFIG_RTAI_SCHED_LXRT_NUMSLOTS // Max number of registered objects

#define IS_TASK  0               // Used to identify registered resources
#define IS_SEM   1
#define IS_RWL   2
#define IS_SPL   3
#define IS_MBX   4
#define IS_PRX   5
#define IS_BIT   6
#define IS_TBX   7
#define IS_HPCK  8

#ifdef __KERNEL__

#include <rtai.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

unsigned long is_process_registered(struct task_struct *tsk);

int rt_register(unsigned long nam,
		void *adr,
		int typ,
		struct task_struct *tsk);

int rt_drg_on_name(unsigned long name);

int rt_drg_on_name_cnt(unsigned long name);

int rt_drg_on_adr(void *adr);

int rt_drg_on_adr_cnt(void *adr);

RTAI_SYSCALL_MODE unsigned long rt_get_name(void *adr);

RTAI_SYSCALL_MODE void *rt_get_adr(unsigned long name);

void *rt_get_adr_cnt(unsigned long name);

int rt_get_type(unsigned long name);

#ifdef CONFIG_PROC_FS
int rt_get_registry_slot(int slot, struct rt_registry_entry *entry);
#endif /* CONFIG_PROC_FS */

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif

#define exist(name)  rt_get_adr(nam2num(name))

#endif /* !_RTAI_REGISTRY_H */