logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VOP_STRATEGY — read or write a file system buffer

Authors

       This manual page was written by Doug Rabson.

Debian                                          February 2, 2014                                 VOP_STRATEGY(9)

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

       The call may block.

Name

       VOP_STRATEGY — read or write a file system buffer

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.

See Also

buf(9), vnode(9)

Synopsis

#include<sys/param.h>#include<sys/vnode.h>intVOP_STRATEGY(structvnode*vp, structbuf*bp);

See Also