summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_subr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-02 20:41:18 +0000
committerphk <phk@FreeBSD.org>2003-04-02 20:41:18 +0000
commitcedf04c4758318e15e1a5924e4226bb5a9699107 (patch)
treebb0413612f4b063a82d75d5551149f4526dbc56d /sys/geom/geom_subr.c
parent021eeb20207634119a2920f756b6eba04148bbf9 (diff)
downloadFreeBSD-src-cedf04c4758318e15e1a5924e4226bb5a9699107.zip
FreeBSD-src-cedf04c4758318e15e1a5924e4226bb5a9699107.tar.gz
Change events to have an array of "void *" references, and give the
event posting functions varargs to fill these. Attribute g_call_me() to appropriate g_geom's where necessary. Add a flag argument to g_call_me() methods which will be used to signal cancellation of events in the future. This commit should be a no-op.
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r--sys/geom/geom_subr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index f2c43fe..9a54da1 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -83,7 +83,7 @@ g_add_class(struct g_class *mp)
LIST_INIT(&mp->geom);
LIST_INSERT_HEAD(&g_classes, mp, class);
if (g_nproviders > 0)
- g_post_event(EV_NEW_CLASS, mp, NULL, NULL, NULL);
+ g_post_event(EV_NEW_CLASS, mp, NULL);
g_topology_unlock();
}
@@ -126,7 +126,7 @@ g_destroy_geom(struct g_geom *gp)
KASSERT(LIST_EMPTY(&gp->provider),
("g_destroy_geom(%s) with provider(s) [%p]",
gp->name, LIST_FIRST(&gp->consumer)));
- g_cancel_event(NULL, gp, NULL, NULL);
+ g_cancel_event(gp);
LIST_REMOVE(gp, geom);
TAILQ_REMOVE(&geoms, gp, geoms);
g_free(gp->name);
@@ -163,7 +163,7 @@ g_destroy_consumer(struct g_consumer *cp)
KASSERT (cp->acr == 0, ("g_destroy_consumer with acr"));
KASSERT (cp->acw == 0, ("g_destroy_consumer with acw"));
KASSERT (cp->ace == 0, ("g_destroy_consumer with ace"));
- g_cancel_event(NULL, NULL, NULL, cp);
+ g_cancel_event(cp);
LIST_REMOVE(cp, consumer);
devstat_remove_entry(cp->stat);
g_free(cp);
@@ -193,7 +193,7 @@ g_new_providerf(struct g_geom *gp, const char *fmt, ...)
DEVSTAT_TYPE_DIRECT, DEVSTAT_PRIORITY_MAX);
LIST_INSERT_HEAD(&gp->provider, pp, provider);
g_nproviders++;
- g_post_event(EV_NEW_PROVIDER, NULL, NULL, pp, NULL);
+ g_post_event(EV_NEW_PROVIDER, pp, NULL);
return (pp);
}
@@ -218,7 +218,7 @@ g_destroy_provider(struct g_provider *pp)
KASSERT (pp->acr == 0, ("g_destroy_provider with acr"));
KASSERT (pp->acw == 0, ("g_destroy_provider with acw"));
KASSERT (pp->acw == 0, ("g_destroy_provider with ace"));
- g_cancel_event(NULL, NULL, pp, NULL);
+ g_cancel_event(pp);
g_nproviders--;
LIST_REMOVE(pp, provider);
gp = pp->geom;
@@ -447,7 +447,7 @@ g_access_rel(struct g_consumer *cp, int dcr, int dcw, int dce)
g_spoil(pp, cp);
else if (pp->acw != 0 && pp->acw == -dcw &&
!(pp->geom->flags & G_GEOM_WITHER))
- g_post_event(EV_NEW_PROVIDER, NULL, NULL, pp, NULL);
+ g_post_event(EV_NEW_PROVIDER, pp, NULL);
pp->acr += dcr;
pp->acw += dcw;
@@ -567,7 +567,7 @@ g_spoil(struct g_provider *pp, struct g_consumer *cp)
KASSERT(cp2->ace == 0, ("spoiling cp->ace = %d", cp2->ace));
cp2->spoiled++;
}
- g_post_event(EV_SPOILED, NULL, NULL, pp, cp);
+ g_post_event(EV_SPOILED, pp, cp, NULL);
}
int
OpenPOWER on IntegriCloud