Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97572400
D42641.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
615 B
Referenced Files
None
Subscribers
None
D42641.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
Tue, Oct 1, 3:23 AM (21 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13225384
Default Alt Text
D42641.diff (615 B)
Attached To
Mode
D42641: Correct reporting of compat32 support to userspace
Attached
Detach File
Event Timeline
Log In to Comment