VOP_READLINK -- read the target of a symbolic link
VOP_READLINK(struct vnode *vp, struct uio *uio, struct ucred *cred);
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
the credentials of the caller
The vnode should be locked on entry and will still be locked on exit.
Zero is returned on success, otherwise an error code is returned.
vop_readlink(struct vnode *vp, struct uio *uio, struct ucred *cred)
int error = 0;
* Read the target of the symlink.
[EIO] A read error occurred while reading the contents of
This man page was written by Doug Rabson.
FreeBSD 5.2.1 July 24, 1996 FreeBSD 5.2.1 [ Back ]