VOP_STRATEGY(9)

VOP_STRATEGY9

Read or write a file system buffer

Usage

#include <sys/param.h>

#include <sys/vnode.h>

int

VOP_STRATEGY(struct vnode *vp, struct buf *bp);

Overview

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_io.bio_cmd.

The call may block.

Return values

Zero is returned on success, otherwise an error is returned.

Authors

This manual page was written by Doug Rabson.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.