Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177717202
D42641.1795116639.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
615 B
Referenced Files
None
Subscribers
None
D42641.1795116639.diff
View Options
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -927,6 +927,12 @@
#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 */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 19, 7:30 PM (13 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41851779
Default Alt Text
D42641.1795116639.diff (615 B)
Attached To
Mode
D42641: Correct reporting of compat32 support to userspace
Attached
Detach File
Event Timeline