Lines Matching refs:clist
247 sysctl_ctx_free(struct sysctl_ctx_list *clist)
260 TAILQ_FOREACH(e, clist, link) {
273 e1 = TAILQ_LAST(clist, sysctl_ctx_list);
283 e = TAILQ_FIRST(clist);
299 sysctl_ctx_entry_add(struct sysctl_ctx_list *clist, struct sysctl_oid *oidp)
304 if (clist == NULL || oidp == NULL)
308 TAILQ_INSERT_HEAD(clist, e, link);
314 sysctl_ctx_entry_find(struct sysctl_ctx_list *clist, struct sysctl_oid *oidp)
319 if (clist == NULL || oidp == NULL)
321 TAILQ_FOREACH(e, clist, link) {
334 sysctl_ctx_entry_del(struct sysctl_ctx_list *clist, struct sysctl_oid *oidp)
338 if (clist == NULL || oidp == NULL)
341 e = sysctl_ctx_entry_find(clist, oidp);
343 TAILQ_REMOVE(clist, e, link);
461 * clist may point to a valid context initialized with sysctl_ctx_init().
464 sysctl_add_oid(struct sysctl_ctx_list *clist, struct sysctl_oid_list *parent,
480 if (clist != NULL)
481 sysctl_ctx_entry_add(clist, oidp);
512 if (clist != NULL)
513 sysctl_ctx_entry_add(clist, oidp);