Introduce SYSCTL_CHILDREN_SET macro which can be used in place of

cast as a value.
This commit is contained in:
Alexander Kabaev 2004-07-28 07:08:39 +00:00
parent e89fadd930
commit 40cd002b5a

View File

@ -180,6 +180,8 @@ void sysctl_unregister_oid(struct sysctl_oid *oidp);
/* Hide these in macros */
#define SYSCTL_CHILDREN(oid_ptr) (struct sysctl_oid_list *) \
(oid_ptr)->oid_arg1
#define SYSCTL_CHILDREN_SET(oid_ptr, val) \
(oid_ptr)->oid_arg1 = (val);
#define SYSCTL_STATIC_CHILDREN(oid_name) \
(&sysctl_##oid_name##_children)