tail head cat sleep
QR code linking to this page

Manual Pages  — VOP_STRATEGY

NAME

VOP_STRATEGY – read or write a file system buffer

CONTENTS

SYNOPSIS

#include <sys/param.h>
#include <sys/buf.h>
#include <sys/vnode.h>

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

DESCRIPTION

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.

RETURN VALUES

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.

SEE ALSO

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

AUTHORS

This manual page was written by Doug Rabson.

VOP_STRATEGY (9) June 30, 2022

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC