Requests that a file be opened for reading or writing.
int vn_open (vp, flag, ext, vinfop, crp)
struct vnode * vp;
int flag;
caddr_t ext;
caddr_t vinfop;
struct ucred * crp;
The vn_open entry point is called to initiate a process access to a v-node and its underlying file system object. The operation of the vn_open entry point varies between virtual file system (VFS) implementations. A successful vn_open entry point must leave a v-node count of at least 1.
The logical file system ensures that the process is not requesting write access (with the FWRITE or FTRUNC mode) to a read-only file system.
The vn_open entry point can be called from the process environment only.
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.
The open subroutine.
The vn_close entry point.
Virtual File System Overview, Virtual File System Kernel Extensions Overview, Logical File System Overview, Understanding Virtual Nodes (V-nodes) in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.
List of Virtual File System Operations.