|
NAMEVOP_READ , VOP_WRITE —
read or write a file
SYNOPSIS#include <sys/param.h>
#include <sys/vnode.h>
#include <sys/uio.h>
int
int
DESCRIPTIONThese entry points read or write the contents of a file.The arguments are:
The ioflag argument is used to give directives and hints to the file system. When attempting a read, the high 16 bits are used to provide a read-ahead hint (in units of file system blocks) that the file system should attempt. The low 16 bits are a bit mask which can contain the following flags: LOCKSThe file should be locked on entry and will still be locked on exit. Rangelock covering the whole i/o range should be owned around the call.RETURN VALUESZero is returned on success, otherwise an error code is returned.ERRORSSEE ALSOuiomove(9), vnode(9)AUTHORSThis manual page was written by Doug Rabson.
Visit the GSP FreeBSD Man Page Interface. |