|
NAMEVOP_OPEN , VOP_CLOSE —
open or close a file
SYNOPSIS#include <sys/param.h>
#include <sys/vnode.h>
int
int
DESCRIPTIONTheVOP_OPEN () entry point is called before a file is
accessed by a process and the VOP_CLOSE () entry point
is called after a file is finished with by the process.
The arguments are:
Pointer to the file fp is useful for file
systems which require such information, e.g.,
fdescfs(5).
Use ‘ The access mode is a set of flags, including
LOCKSVOP_OPEN () expects vp to be locked
on entry and will leave it locked on return.
RETURN VALUESZero is returned on success, otherwise an error code is returned.SEE ALSOvnode(9), VOP_LOOKUP(9)AUTHORSThis manual page was written by Doug Rabson.
Visit the GSP FreeBSD Man Page Interface. |