VOP_STRATEGY(9freebsd)

VOP_STRATEGY9freebsd

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

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.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

This manual page was written by Doug Rabson.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.