summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-23 21:28:27 +0000
committerphk <phk@FreeBSD.org>2003-04-23 21:28:27 +0000
commitffd04bfbddd49c6770b05d62b4d4aa441be8e345 (patch)
tree2f6f2067280259902445ac8d739f9808ae338173 /sys/geom/geom.h
parent89702db8fc31b7c5f4d8f4489268abaa95cbeb52 (diff)
downloadFreeBSD-src-ffd04bfbddd49c6770b05d62b4d4aa441be8e345.zip
FreeBSD-src-ffd04bfbddd49c6770b05d62b4d4aa441be8e345.tar.gz
Introduce a g_waitfor_event() function which posts an event and waits for
it to be run (or cancelled) and use this instead of home-rolled versions.
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r--sys/geom/geom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index b05fb1d..80d2949 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -211,6 +211,7 @@ void g_trace(int level, const char *, ...);
typedef void g_event_t(void *, int flag);
#define EV_CANCEL 1
int g_post_event(g_event_t *func, void *arg, int flag, ...);
+int g_waitfor_event(g_event_t *func, void *arg, int flag, ...);
void g_cancel_event(void *ref);
void g_orphan_provider(struct g_provider *pp, int error);
void g_waitidle(void);
OpenPOWER on IntegriCloud