--- src/sys/sys/sysctl.h 2004/11/09 17:52:45 1.12 +++ src/sys/sys/sysctl.h 2005/02/05 23:04:28 1.13 @@ -158,6 +158,9 @@ void sysctl_unregister_oid(struct sysctl extern struct sysctl_oid_list sysctl_##name##_children /* Hide these in macros */ +#define SYSCTL_SET_CHILDREN(oid_ptr, children) do { \ + (oid_ptr)->oid_arg1 = (children); \ +} while(0) #define SYSCTL_CHILDREN(oid_ptr) (struct sysctl_oid_list *) \ (oid_ptr)->oid_arg1 #define SYSCTL_STATIC_CHILDREN(oid_name) \