From cedf04c4758318e15e1a5924e4226bb5a9699107 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 2 Apr 2003 20:41:18 +0000 Subject: 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. --- sys/geom/geom_bsd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/geom/geom_bsd.c') diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 6e14333..39f4222 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -479,7 +479,7 @@ g_bsd_try(struct g_geom *gp, struct g_slicer *gsp, struct g_consumer *cp, int se */ static void -g_bsd_ioctl(void *arg) +g_bsd_ioctl(void *arg, int flag __unused) { struct bio *bp; struct g_geom *gp; @@ -608,7 +608,7 @@ g_bsd_diocbsdbb(dev_t dev, u_long cmd __unused, caddr_t data, int fflag __unused * footshooting as best we can. */ static void -g_bsd_hotwrite(void *arg) +g_bsd_hotwrite(void *arg, int flag __unused) { struct bio *bp; struct g_geom *gp; @@ -682,7 +682,7 @@ g_bsd_start(struct bio *bp) /* We do not allow deleting our hot spots */ return (EPERM); case BIO_WRITE: - g_call_me(g_bsd_hotwrite, bp); + g_call_me(g_bsd_hotwrite, bp, gp, NULL); return (EJUSTRETURN); case BIO_GETATTR: if (g_handleattr(bp, "BSD::labelsum", ms->labelsum, @@ -723,7 +723,7 @@ g_bsd_start(struct bio *bp) * some I/O requests. Ask the event-handler to schedule * us in a less restricted environment. */ - error = g_call_me(g_bsd_ioctl, bp); + error = g_call_me(g_bsd_ioctl, bp, gp, NULL); if (error) g_io_deliver(bp, error); /* -- cgit v1.1