xref: /minix/minix/include/minix/sysctl.h (revision d2532d3d)
1 #ifndef _MINIX_SYSCTL_H
2 #define _MINIX_SYSCTL_H
3 
4 /* MINIX3-specific sysctl(2) extensions. */
5 
6 #include <sys/sysctl.h>
7 
8 /* Special values. */
9 #define SYSCTL_NODE_FN	((sysctlfn)0x1)		/* node is function-driven */
10 
11 /*
12  * The top-level MINIX3 identifier is quite a bit beyond the last top-level
13  * identifier in use by NetBSD, because NetBSD may add more later, and we do
14  * not want conflicts: this definition is part of the MINIX3 ABI.
15  */
16 #define CTL_MINIX	32
17 
18 #if CTL_MAXID > CTL_MINIX
19 #error "CTL_MAXID has grown too large!"
20 #endif
21 
22 /*
23  * The identifiers below follow the standard sysctl naming scheme, which means
24  * care should be taken not to introduce clashes with other definitions
25  * elsewhere.  On the upside, not many places need to include this header file.
26  */
27 #define MINIX_TEST	0
28 #define MINIX_MIB	1
29 
30 /*
31  * These identifiers, under MINIX_TEST, are used by test87 to test the MIB
32  * service.
33  */
34 #define TEST_INT	0
35 #define TEST_BOOL	1
36 #define TEST_QUAD	2
37 #define TEST_STRING	3
38 #define TEST_STRUCT	4
39 #define TEST_PRIVATE	5
40 #define TEST_ANYWRITE	6
41 #define TEST_DYNAMIC	7
42 #define TEST_SECRET	8
43 #define TEST_PERM	9
44 #define TEST_DESTROY1	10
45 #define TEST_DESTROY2	11
46 
47 #define SECRET_VALUE	0
48 
49 /* Identifiers for subnodes of MINIX_MIB. */
50 #define MIB_NODES	1
51 #define MIB_OBJECTS	2
52 
53 #endif /* !_MINIX_SYSCTL_H */
54