summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_autoconf.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-09-26 18:48:53 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-09-26 18:48:53 +0000
commitd2f46000e96f60c5db4563d0e5076de4dbec41e3 (patch)
tree49c14af45dd471130354295545c64c34727385f6 /sys/kern/subr_autoconf.c
parent08f3dd54013dead522f9885679ae165780275590 (diff)
downloadFreeBSD-src-d2f46000e96f60c5db4563d0e5076de4dbec41e3.zip
FreeBSD-src-d2f46000e96f60c5db4563d0e5076de4dbec41e3.tar.gz
Change explicit use of the queue fields into use of the definitions
in queue.h. Change the name of two variables for consistency. Reviewed-By: peter
Diffstat (limited to 'sys/kern/subr_autoconf.c')
-rw-r--r--sys/kern/subr_autoconf.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 4de4ee9..6e9051c 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -66,15 +66,16 @@ static void
run_interrupt_driven_config_hooks(dummy)
void *dummy;
{
- struct intr_config_hook *hook, *next;
+ struct intr_config_hook *hook_entry, *next_entry;
- for (hook = intr_config_hook_list.tqh_first; hook != NULL;
- hook = next) {
- next = hook->ich_links.tqe_next;
- (*hook->ich_func)(hook->ich_arg);
+ for (hook_entry = TAILQ_FIRST(&intr_config_hook_list);
+ hook_entry != NULL;
+ hook_entry = next_entry) {
+ next_entry = TAILQ_NEXT(hook_entry, ich_links);
+ (*hook_entry->ich_func)(hook_entry->ich_arg);
}
- while (intr_config_hook_list.tqh_first != NULL) {
+ while (!TAILQ_EMPTY(&intr_config_hook_list)) {
tsleep(&intr_config_hook_list, PCONFIG, "conifhk", 0);
}
}
@@ -92,8 +93,9 @@ config_intrhook_establish(hook)
{
struct intr_config_hook *hook_entry;
- for (hook_entry = intr_config_hook_list.tqh_first; hook_entry != NULL;
- hook_entry = hook_entry->ich_links.tqe_next)
+ for (hook_entry = TAILQ_FIRST(&intr_config_hook_list);
+ hook_entry != NULL;
+ hook_entry = TAILQ_NEXT(hook_entry, ich_links))
if (hook_entry == hook)
break;
if (hook_entry != NULL) {
@@ -114,8 +116,9 @@ config_intrhook_disestablish(hook)
{
struct intr_config_hook *hook_entry;
- for (hook_entry = intr_config_hook_list.tqh_first; hook_entry != NULL;
- hook_entry = hook_entry->ich_links.tqe_next)
+ for (hook_entry = TAILQ_FIRST(&intr_config_hook_list);
+ hook_entry != NULL;
+ hook_entry = TAILQ_NEXT(hook_entry, ich_links))
if (hook_entry == hook)
break;
if (hook_entry == NULL)
OpenPOWER on IntegriCloud