aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_autoconf.c
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>1999-09-26 18:48:53 +0000
committerNick Hibma <n_hibma@FreeBSD.org>1999-09-26 18:48:53 +0000
commit879eff8ee60c79f8ef1289ac2ff2c5f61138b5b9 (patch)
tree6a6d53577f97b7a442a54cd3628c563311846542 /sys/kern/subr_autoconf.c
parent18e2e348fb0540fb907c42488ef55a33f6931534 (diff)
downloadsrc-879eff8ee60c79f8ef1289ac2ff2c5f61138b5b9.tar.gz
src-879eff8ee60c79f8ef1289ac2ff2c5f61138b5b9.zip
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
Notes
Notes: svn path=/head/; revision=51684
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 4de4ee940e43..6e9051cbd66e 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)