Catch up with 2004 and improve markup.

Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D35676
This commit is contained in:
Dag-Erling Smørgrav 2022-06-30 13:36:05 +00:00
parent 1323f0aa9c
commit 42db2dbbc5

View File

@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd February 2, 2014
.Dd June 30, 2022
.Dt VOP_STRATEGY 9
.Os
.Sh NAME
@ -36,6 +36,7 @@
.Nd read or write a file system buffer
.Sh SYNOPSIS
.In sys/param.h
.In sys/buf.h
.In sys/vnode.h
.Ft int
.Fn VOP_STRATEGY "struct vnode *vp" "struct buf *bp"
@ -49,14 +50,22 @@ The buffer to be read or written.
.El
.Pp
This call either reads or writes data from a file, depending on the value of
.Fa bp->b_io.bio_cmd .
.Fa bp->b_iocmd .
.Pp
The call may block.
.Sh RETURN VALUES
Always zero.
Errors should be signalled by setting BIO_ERROR on b_ioflags field in struct buf,
and setting b_error to the appropriate errno value.
Errors should be signalled by setting the
.Dv BIO_ERROR
bit in
.Fa bp->b_ioflags
and setting
.Fa bp->b_error
to the appropriate
.Va errno
value.
.Sh SEE ALSO
.Xr errno 2 ,
.Xr buf 9 ,
.Xr vnode 9
.Sh AUTHORS