Reads the contents of a symbolic link.
Item | Description |
---|---|
vp | Points to a virtual node (v-node) structure. The vnop_readlink entry point holds this v-node for the duration of the routine. |
uio | Points to a uio structure. This structure contains the information required to read the link. In addition, it contains the return buffer for the vnop_readlink entry point. |
crp | Points to the cred structure. This structure contains data that the file system can use to validate access permission. |
The vnop_readlink entry point is used by the logical file system to get the contents of a symbolic link, if the file system supports symbolic links. The logical file system finds the v-node (virtual node) for the symbolic link, so this routine simply reads the data blocks for the symbol link.
The vnop_readlink entry point can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.