Manual Page Search Parameters

VOP_STRATEGY(9) Kernel Developer's Manual VOP_STRATEGY(9)

VOP_STRATEGYread 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:

vp
The vnode that the buffer is for.
bp
The buffer to be read or written.

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.

errno(2), buf(9), vnode(9)

This manual page was written by Doug Rabson.

June 30, 2022 dev