summaryrefslogtreecommitdiffstats
path: root/share/man/man9/g_bio.9
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-02-11 18:36:31 +0000
committerpjd <pjd@FreeBSD.org>2004-02-11 18:36:31 +0000
commit7065c8e2b7f8d7c75cfd1822a1c9e3afd77de5fa (patch)
treefd71d36ef4bf3b7db2352bd059277dfd99df0617 /share/man/man9/g_bio.9
parentc681583fbc8e0ff0d3f54a2ce41b3a5a14917315 (diff)
downloadFreeBSD-src-7065c8e2b7f8d7c75cfd1822a1c9e3afd77de5fa.zip
FreeBSD-src-7065c8e2b7f8d7c75cfd1822a1c9e3afd77de5fa.tar.gz
Document g_print_bio() function.
Approved by: scottl (mentor)
Diffstat (limited to 'share/man/man9/g_bio.9')
-rw-r--r--share/man/man9/g_bio.915
1 files changed, 14 insertions, 1 deletions
diff --git a/share/man/man9/g_bio.9 b/share/man/man9/g_bio.9
index d602665..37d609d0 100644
--- a/share/man/man9/g_bio.9
+++ b/share/man/man9/g_bio.9
@@ -30,7 +30,8 @@
.Sh NAME
.Nm g_new_bio ,
.Nm g_clone_bio ,
-.Nm g_destroy_bio
+.Nm g_destroy_bio ,
+.Nm g_print_bio
.Nd "bio controlling functions"
.Sh SYNOPSIS
.In sys/bio.h
@@ -41,6 +42,8 @@
.Fn g_clone_bio "struct bio *bp"
.Ft void
.Fn g_destroy_bio "struct bio *bp"
+.Ft void
+.Fn g_print_bio "struct bio *bp"
.Sh DESCRIPTION
The
.Fa bio
@@ -167,6 +170,12 @@ The
function kills the given
.Vt bio
structure.
+.Pp
+The
+.Fn g_print_bio
+function prints informations about given
+.Vt bio
+structure.
.Sh EXAMPLES
Implementation of
.Dq Dv NULL Ns \-transformation ,
@@ -184,6 +193,10 @@ example_start(struct bio *bp)
struct example_softc *sc;
struct bio *cbp;
+ printf("Request received: ");
+ g_print_bio();
+ printf("\\n");
+
sc = bp->bio_to->geom->softc;
if (sc == NULL) {
g_io_deliver(bp, ENXIO);
OpenPOWER on IntegriCloud