Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/sysctl.h
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | #define SYSCTL_NODE_CHILDREN(parent, name) \ | ||||
sysctl__##parent##_##name.oid_children | sysctl__##parent##_##name.oid_children | ||||
#ifndef NO_SYSCTL_DESCR | #ifndef NO_SYSCTL_DESCR | ||||
#define __DESCR(d) d | #define __DESCR(d) d | ||||
#else | #else | ||||
#define __DESCR(d) "" | #define __DESCR(d) "" | ||||
#endif | #endif | ||||
#ifdef notyet | #ifdef notyet | ||||
#define SYSCTL_ENFORCE_FLAGS(x) \ | #define SYSCTL_ENFORCE_FLAGS(x) \ | ||||
_Static_assert(((CTLFLAG_MPSAFE ^ CTLFLAG_NEEDGIANT) & (x)), \ | _Static_assert((((x) & CTLFLAG_MPSAFE) != 0) ^ (((x) & CTLFLAG_NEEDGIANT) != 0), \ | ||||
"Has to be either CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT") | "Has to be either CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT") | ||||
#else | #else | ||||
#define SYSCTL_ENFORCE_FLAGS(x) | #define SYSCTL_ENFORCE_FLAGS(x) | ||||
#endif | #endif | ||||
/* This macro is only for internal use */ | /* This macro is only for internal use */ | ||||
#define SYSCTL_OID_RAW(id, parent_child_head, nbr, name, kind, a1, a2, handler, fmt, descr, label) \ | #define SYSCTL_OID_RAW(id, parent_child_head, nbr, name, kind, a1, a2, handler, fmt, descr, label) \ | ||||
struct sysctl_oid id = { \ | struct sysctl_oid id = { \ | ||||
▲ Show 20 Lines • Show All 907 Lines • Show Last 20 Lines |