diff options
author | pjd <pjd@FreeBSD.org> | 2004-11-09 23:20:50 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-11-09 23:20:50 +0000 |
commit | 412bff1f39c19dbc588d70ac080106215db7eec4 (patch) | |
tree | b0460c504df68f0cf84d7a6b76d1359486a83ec0 /sys/geom/geom.h | |
parent | 37a1084115a6c5cba4c2677edd57618c2fe37ea4 (diff) | |
download | FreeBSD-src-412bff1f39c19dbc588d70ac080106215db7eec4.zip FreeBSD-src-412bff1f39c19dbc588d70ac080106215db7eec4.tar.gz |
Introduce g_waitidlelock() function which is simlar to g_waitidle(),
but should be called with the topology lock held and returns with the
topology lock held and empty event queue.
Approved by: phk (sometime ago)
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index ffdc3cb..3ae296b 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -213,6 +213,7 @@ 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_waitidlelock(void); /* geom_subr.c */ int g_access(struct g_consumer *cp, int nread, int nwrite, int nexcl); |