diff options
author | imp <imp@FreeBSD.org> | 2016-02-17 17:16:02 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2016-02-17 17:16:02 +0000 |
commit | 0bfb5dbc867a4ef73b0b2259adfd285a1cbaf5d2 (patch) | |
tree | 9d0b9ff9938b0c9fa10bfca4675a8a542491fbe6 /sys/geom/geom.h | |
parent | a8f5ecad19b5c936057dbbcda2353b9ca84b09f5 (diff) | |
download | FreeBSD-src-0bfb5dbc867a4ef73b0b2259adfd285a1cbaf5d2.zip FreeBSD-src-0bfb5dbc867a4ef73b0b2259adfd285a1cbaf5d2.tar.gz |
Create an API to reset a struct bio (g_reset_bio). This is mandatory
for all struct bio you get back from g_{new,alloc}_bio. Temporary
bios that you create on the stack or elsewhere should use this before
first use of the bio, and between uses of the bio. At the moment, it
is nothing more than a wrapper around bzero, but that may change in
the future. The wrapper also removes one place where we encode the
size of struct bio in the KBI.
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 f313d02..bf70d0b 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -324,6 +324,7 @@ void g_unregister_classifier(struct g_classifier_hook *hook); 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_reset_bio(struct bio *); 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); int g_delete_data(struct g_consumer *cp, off_t offset, off_t length); |