VOP_STRATEGY(9) | MidnightBSD Kernel Developer's Manual | VOP_STRATEGY(9) |
VOP_STRATEGY
—
read or write a file system buffer
#include
<sys/param.h>
#include <sys/buf.h>
#include <sys/vnode.h>
int
VOP_STRATEGY
(struct
vnode *vp, struct buf
*bp);
The arguments are:
This call either reads or writes data from a file, depending on the value of bp->b_iocmd.
The call may block.
Always zero. Errors should be signalled by setting the
BIO_ERROR
bit in
bp->b_ioflags and setting
bp->b_error to the appropriate
errno value.
This manual page was written by Doug Rabson.
June 30, 2022 | midnightbsd-3.1 |