Commit | Line | Data |
---|---|---|
735bef47 MJ |
1 | #ifndef _LTTNG_NS_H |
2 | #define _LTTNG_NS_H | |
3 | ||
4 | /* | |
5 | * Copyright (c) 2019 - Michael Jeanson <mjeanson@efficios.com> | |
6 | * | |
7 | * This library is free software; you can redistribute it and/or | |
8 | * modify it under the terms of the GNU Lesser General Public | |
9 | * License as published by the Free Software Foundation; only | |
10 | * version 2.1 of the License. | |
11 | * | |
12 | * This library is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * Lesser General Public License for more details. | |
16 | * | |
17 | * You should have received a copy of the GNU Lesser General Public | |
18 | * License along with this library; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
20 | */ | |
21 | ||
22 | ||
23 | /* | |
24 | * The lowest valid inode number that can be allocated in the proc filesystem | |
25 | * is 0xF0000000. Any number below can be used internally as an error code. | |
26 | * | |
27 | * Zero is used in the kernel as an error code, it's the value we will return | |
28 | * when we fail to read the proper inode number. | |
29 | * | |
30 | * One is used internally to identify an uninitialized cache entry, it should | |
31 | * never be returned. | |
32 | */ | |
33 | ||
34 | enum ns_ino_state { | |
35 | NS_INO_UNAVAILABLE = 0x0, | |
36 | NS_INO_UNINITIALIZED = 0x1, | |
37 | NS_INO_MIN = 0xF0000000, | |
38 | }; | |
39 | ||
40 | #endif /* _LTTNG_NS_H */ |