Lines Matching refs:kctl_next
1638 struct kctl *kctl_next = NULL; in ctl_register() local
1689 kctl_next = TAILQ_LAST(&ctl_head, kctl_list); in ctl_register()
1691 if (kctl_next != NULL) { in ctl_register()
1693 id = kctl_next->id + 1; in ctl_register()
1694 kctl_next = NULL; in ctl_register()
1704 TAILQ_FOREACH(kctl_next, &ctl_head, next) { in ctl_register()
1705 if (kctl_next->id > id) { in ctl_register()
1710 id = kctl_next->id + 1; in ctl_register()
1719 TAILQ_FOREACH(kctl_next, &ctl_head, next) { in ctl_register()
1720 if (kctl_next->id > userkctl->ctl_id) { in ctl_register()
1773 if (kctl_next) { in ctl_register()
1774 TAILQ_INSERT_BEFORE(kctl_next, kctl, next); in ctl_register()