Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/sysctl.h
Show First 20 Lines • Show All 883 Lines • ▼ Show 20 Lines | #define FEATURE(name, desc) \ | ||||
SYSCTL_INT_WITH_LABEL(_kern_features, OID_AUTO, name, \ | SYSCTL_INT_WITH_LABEL(_kern_features, OID_AUTO, name, \ | ||||
CTLFLAG_RD | CTLFLAG_CAPRD, SYSCTL_NULL_INT_PTR, 1, desc, "feature") | CTLFLAG_RD | CTLFLAG_CAPRD, SYSCTL_NULL_INT_PTR, 1, desc, "feature") | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
/* | /* | ||||
* Top-level identifiers | * Top-level identifiers | ||||
*/ | */ | ||||
#define CTL_UNSPEC 0 /* unused */ | #define CTL_SYSCTL 0 /* "magic" numbers */ | ||||
#define CTL_KERN 1 /* "high kernel": proc, limits */ | #define CTL_KERN 1 /* "high kernel": proc, limits */ | ||||
#define CTL_VM 2 /* virtual memory */ | #define CTL_VM 2 /* virtual memory */ | ||||
#define CTL_VFS 3 /* filesystem, mount type is next */ | #define CTL_VFS 3 /* filesystem, mount type is next */ | ||||
#define CTL_NET 4 /* network, see socket.h */ | #define CTL_NET 4 /* network, see socket.h */ | ||||
#define CTL_DEBUG 5 /* debugging parameters */ | #define CTL_DEBUG 5 /* debugging parameters */ | ||||
#define CTL_HW 6 /* generic cpu/io */ | #define CTL_HW 6 /* generic cpu/io */ | ||||
#define CTL_MACHDEP 7 /* machine dependent */ | #define CTL_MACHDEP 7 /* machine dependent */ | ||||
#define CTL_USER 8 /* user-level */ | #define CTL_USER 8 /* user-level */ | ||||
#define CTL_P1003_1B 9 /* POSIX 1003.1B */ | #define CTL_P1003_1B 9 /* POSIX 1003.1B */ | ||||
/* | |||||
* CTL_SYSCTL identifiers | |||||
*/ | |||||
#define CTL_SYSCTL_DEBUG 0 /* printf all nodes */ | |||||
#define CTL_SYSCTL_NAME 1 /* string name of OID */ | |||||
#define CTL_SYSCTL_NEXT 2 /* next OID */ | |||||
#define CTL_SYSCTL_NAME2OID 3 /* int array of name */ | |||||
#define CTL_SYSCTL_OIDFMT 4 /* OID's kind and format */ | |||||
#define CTL_SYSCTL_OIDDESCR 5 /* OID's description */ | |||||
#define CTL_SYSCTL_OIDLABEL 6 /* aggregation label */ | |||||
/* | /* | ||||
* CTL_KERN identifiers | * CTL_KERN identifiers | ||||
*/ | */ | ||||
#define KERN_OSTYPE 1 /* string: system version */ | #define KERN_OSTYPE 1 /* string: system version */ | ||||
#define KERN_OSRELEASE 2 /* string: system release */ | #define KERN_OSRELEASE 2 /* string: system release */ | ||||
#define KERN_OSREV 3 /* int: system revision */ | #define KERN_OSREV 3 /* int: system revision */ | ||||
#define KERN_VERSION 4 /* string: compile time info */ | #define KERN_VERSION 4 /* string: compile time info */ | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |