VOP_READLINK — read the target of a symbolic link
Contents
Description
This reads the target pathname of a symbolic link
vp The vnode of the symlink.
uio The location of the data to be read or written.
cred
The credentials of the caller.
Errors
[EIO] A read error occurred while reading the contents of the symlink.
[EINTEGRITY] Corrupted data was detected while reading the contents of the symlink.
Locks
The vnode should be locked on entry and will still be locked on exit.
Name
VOP_READLINK — read the target of a symbolic link
Return Values
Zero is returned on success, otherwise an error code is returned.
See Also
uiomove(9), vnode(9)
Synopsis
#include<sys/param.h>#include<sys/vnode.h>#include<sys/uio.h>intVOP_READLINK(structvnode*vp, structuio*uio, structucred*cred);
