summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-08-27 14:43:11 +0000
committerphk <phk@FreeBSD.org>2004-08-27 14:43:11 +0000
commit4759b478a24308f1b05879cbaa6f87337dd14121 (patch)
treeaecbd63fbdf1226b9fb4c9b44030687ea5ca1607 /sys/geom/geom.h
parent5ac6b38f63ea4ae6355111ea621cec4a2fe6358c (diff)
downloadFreeBSD-src-4759b478a24308f1b05879cbaa6f87337dd14121.zip
FreeBSD-src-4759b478a24308f1b05879cbaa6f87337dd14121.tar.gz
Introduce g_alloc_bio() as a waiting variant of g_new_bio().
Use in places where we can sleep and where we previously failed to check for a NULL pointer. MT5 candidate.
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 015baea..55a6f0c 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -264,6 +264,7 @@ void g_io_deliver(struct bio *bp, int error);
int g_io_getattr(const char *attr, struct g_consumer *cp, int *len, void *ptr);
void g_io_request(struct bio *bp, struct g_consumer *cp);
struct bio *g_new_bio(void);
+struct bio *g_alloc_bio(void);
void * g_read_data(struct g_consumer *cp, off_t offset, off_t length, int *error);
int g_write_data(struct g_consumer *cp, off_t offset, void *ptr, off_t length);
void g_print_bio(struct bio *bp);
OpenPOWER on IntegriCloud