Lines Matching refs:root
97 struct pf_altq_node *root = NULL, *node;
105 if ((nodes = pfctl_update_qstats(dev, &root)) < 0)
110 for (node = root; node != NULL; node = node->next) {
124 if ((nodes = pfctl_update_qstats(dev, &root)) == -1)
126 for (node = root; node != NULL; node = node->next) {
136 pfctl_free_altq_node(root);
141 pfctl_update_qstats(int dev, struct pf_altq_node **root)
160 if (pa.ticket != last_ticket && *root != NULL) {
161 pfctl_free_altq_node(*root);
162 *root = NULL;
188 if ((node = pfctl_find_altq_node(*root, pa.altq.qname,
194 pfctl_insert_altq_node(root, pa.altq, qstats);
200 if ((node = pfctl_find_altq_node(*root, pa.altq.qname,
206 pfctl_insert_altq_node(root, pa.altq, qstats);
215 pfctl_insert_altq_node(struct pf_altq_node **root,
227 if (*root == NULL)
228 *root = node;
230 struct pf_altq_node *prev = *root;
238 parent = pfctl_find_altq_node(*root, altq.parent, altq.ifname);
255 pfctl_find_altq_node(struct pf_altq_node *root, const char *qname,
260 for (node = root; node != NULL; node = node->next) {