Retrieves the v-node that corresponds to the named path.
#include <sys/types.h> #include <sys/errno.h>
int lookupvp (namep, flags, vpp, crp) char *namep; int flags; struct vnode **vpp; struct ucred *crp;
|crp||Points to the cred structure. This structure contains data that the file system can use to validate access permission.|
|namep||Points to a character string path name.|
|flags|| Specifies lookup directives, including these six flags:
|vpp||Points to the location where the v-node pointer is to be returned to the calling routine.|
The lookupvp kernel service provides translation of the path name provided by the namep parameter into a virtual file system node. The lookupvp service provides a flexible interface to path-name resolution by regarding the flags parameter values as directives to the lookup process. The lookup process is a cooperative effort between the logical file system and underlying virtual file systems (VFS). Several v-node and VFS operations are employed to:
The lookupvp kernel service determines the process's current and root directories by consulting the u_cdir and u_rdir fields in the u structure. Information about the virtual file system and file system installation for transient v-nodes is obtained from each name component's vfs or gfs structure.
The lookupvp kernel service can be called from the process environment only.
|0||Indicates a successful operation.|
|errno||Indicates an error. This number is defined in the /usr/include/sys/errno.h file.|
The lookupvp kernel service is part of Base Operating System (BOS) Runtime.
Understanding Data Structures and Header Files for Virtual File Systems in AIX Kernel Extensions and Device Support Programming Concepts.
Virtual File System Overview in AIX Kernel Extensions and Device Support Programming Concepts.
Virtual File System (VFS) Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.