Lines Matching refs:sysctlnode
66 static struct sysctlnode sysctl_mibroot = {
74 .sysctl_size = sizeof(struct sysctlnode),
83 static void free_children(struct sysctlnode *);
94 return (((const struct sysctlnode *)a)->sysctl_num -
95 ((const struct sysctlnode *)b)->sysctl_num);
102 free_children(struct sysctlnode *rnode)
104 struct sysctlnode *node;
128 struct sysctlnode *h, *i, *o, qnode;
147 so = sysctl_mibroot.sysctl_clen * sizeof(struct sysctlnode);
164 nlen = so / sizeof(struct sysctlnode);
165 qsort(h, nlen, sizeof(struct sysctlnode), compar);
270 __learn_tree(int *name, u_int namelen, struct sysctlnode *pnode)
272 struct sysctlnode qnode;
287 sz = SYSCTL_DEFSIZE * sizeof(struct sysctlnode);
289 sz = pnode->sysctl_clen * sizeof(struct sysctlnode);
311 if ((sz % sizeof(struct sysctlnode)) != 0)
336 sz /= sizeof(struct sysctlnode);
350 sizeof(struct sysctlnode), compar);
387 size_t *, struct sysctlnode **, int);
392 char *cname, size_t *csz, struct sysctlnode **rnode, int v)
407 char *cname, size_t *csz, struct sysctlnode **rnode,
411 struct sysctlnode *pnode, *node;
608 *rnode = malloc(sizeof(struct sysctlnode));