diff options
author | pjd <pjd@FreeBSD.org> | 2004-02-11 18:36:31 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-02-11 18:36:31 +0000 |
commit | 7065c8e2b7f8d7c75cfd1822a1c9e3afd77de5fa (patch) | |
tree | fd71d36ef4bf3b7db2352bd059277dfd99df0617 /share/man | |
parent | c681583fbc8e0ff0d3f54a2ce41b3a5a14917315 (diff) | |
download | FreeBSD-src-7065c8e2b7f8d7c75cfd1822a1c9e3afd77de5fa.zip FreeBSD-src-7065c8e2b7f8d7c75cfd1822a1c9e3afd77de5fa.tar.gz |
Document g_print_bio() function.
Approved by: scottl (mentor)
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/g_bio.9 | 15 |
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); |