1fab63cc4SDoug Rabson.\" -*- nroff -*- 2fab63cc4SDoug Rabson.\" 3fab63cc4SDoug Rabson.\" Copyright (c) 1996 Doug Rabson 4fab63cc4SDoug Rabson.\" 5fab63cc4SDoug Rabson.\" All rights reserved. 6fab63cc4SDoug Rabson.\" 7fab63cc4SDoug Rabson.\" This program is free software. 8fab63cc4SDoug Rabson.\" 9fab63cc4SDoug Rabson.\" Redistribution and use in source and binary forms, with or without 10fab63cc4SDoug Rabson.\" modification, are permitted provided that the following conditions 11fab63cc4SDoug Rabson.\" are met: 12fab63cc4SDoug Rabson.\" 1. Redistributions of source code must retain the above copyright 13fab63cc4SDoug Rabson.\" notice, this list of conditions and the following disclaimer. 14fab63cc4SDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright 15fab63cc4SDoug Rabson.\" notice, this list of conditions and the following disclaimer in the 16fab63cc4SDoug Rabson.\" documentation and/or other materials provided with the distribution. 17fab63cc4SDoug Rabson.\" 18fab63cc4SDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR 19fab63cc4SDoug Rabson.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20fab63cc4SDoug Rabson.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21fab63cc4SDoug Rabson.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 22fab63cc4SDoug Rabson.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23fab63cc4SDoug Rabson.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24fab63cc4SDoug Rabson.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25fab63cc4SDoug Rabson.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26fab63cc4SDoug Rabson.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27fab63cc4SDoug Rabson.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28fab63cc4SDoug Rabson.\" 29*42db2dbbSDag-Erling Smørgrav.Dd June 30, 2022 30fab63cc4SDoug Rabson.Dt VOP_STRATEGY 9 31aa12cea2SUlrich Spörlein.Os 32fab63cc4SDoug Rabson.Sh NAME 33fab63cc4SDoug Rabson.Nm VOP_STRATEGY 34fab63cc4SDoug Rabson.Nd read or write a file system buffer 35fab63cc4SDoug Rabson.Sh SYNOPSIS 3632eef9aeSRuslan Ermilov.In sys/param.h 37*42db2dbbSDag-Erling Smørgrav.In sys/buf.h 3832eef9aeSRuslan Ermilov.In sys/vnode.h 39fab63cc4SDoug Rabson.Ft int 4099b4f824SBruce Evans.Fn VOP_STRATEGY "struct vnode *vp" "struct buf *bp" 41fab63cc4SDoug Rabson.Sh DESCRIPTION 42fab63cc4SDoug RabsonThe arguments are: 43218d2162SRuslan Ermilov.Bl -tag -width 2n 440640e9e0SHiten Pandya.It Fa vp 450a57ea7dSRuslan ErmilovThe vnode that the buffer is for. 460640e9e0SHiten Pandya.It Fa bp 470a57ea7dSRuslan ErmilovThe buffer to be read or written. 48fab63cc4SDoug Rabson.El 49fab63cc4SDoug Rabson.Pp 50fab63cc4SDoug RabsonThis call either reads or writes data from a file, depending on the value of 51*42db2dbbSDag-Erling Smørgrav.Fa bp->b_iocmd . 524c7da4f9SAlfred Perlstein.Pp 534c7da4f9SAlfred PerlsteinThe call may block. 54fab63cc4SDoug Rabson.Sh RETURN VALUES 550da50f6eSEdward Tomasz NapieralaAlways zero. 56*42db2dbbSDag-Erling SmørgravErrors should be signalled by setting the 57*42db2dbbSDag-Erling Smørgrav.Dv BIO_ERROR 58*42db2dbbSDag-Erling Smørgravbit in 59*42db2dbbSDag-Erling Smørgrav.Fa bp->b_ioflags 60*42db2dbbSDag-Erling Smørgravand setting 61*42db2dbbSDag-Erling Smørgrav.Fa bp->b_error 62*42db2dbbSDag-Erling Smørgravto the appropriate 63*42db2dbbSDag-Erling Smørgrav.Va errno 64*42db2dbbSDag-Erling Smørgravvalue. 65fab63cc4SDoug Rabson.Sh SEE ALSO 66*42db2dbbSDag-Erling Smørgrav.Xr errno 2 , 67c41b028cSBryan Drewery.Xr buf 9 , 68bceb8aedSWolfram Schneider.Xr vnode 9 69fab63cc4SDoug Rabson.Sh AUTHORS 70571dba6eSHiten PandyaThis manual page was written by 71aaf1f16eSPhilippe Charnier.An Doug Rabson . 72