mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
parent
5b4b93e607
commit
e056f6da61
1 changed files with 6 additions and 0 deletions
|
|
@ -927,6 +927,12 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry);
|
|||
#define FEATURE(name, desc) \
|
||||
SYSCTL_INT_WITH_LABEL(_kern_features, OID_AUTO, name, \
|
||||
CTLFLAG_RD | CTLFLAG_CAPRD, SYSCTL_NULL_INT_PTR, 1, desc, "feature")
|
||||
/* Same for the dynamic registration. */
|
||||
#define FEATURE_ADD(name, desc) \
|
||||
sysctl_add_oid(NULL, SYSCTL_CHILDREN(&sysctl___kern_features), \
|
||||
OID_AUTO, name, \
|
||||
CTLFLAG_RD | CTLFLAG_CAPRD | CTLTYPE_INT | CTLFLAG_MPSAFE, \
|
||||
NULL, 1, sysctl_handle_int, "I", desc, "feature");
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue