:man| Alphabetical   Categories   About us 
 
VOP_READLINK (9) | Kernel routines | Unix Manual Pages | :man

NAME

VOP_READLINK - read the target of a symbolic link

CONTENTS

Synopsis
Description
Locks
Return Values
Pseudocode
Errors
See Also
Authors

SYNOPSIS


.In sys/param.h
.In sys/vnode.h
.In sys/uio.h int VOP_READLINK "struct vnode *vp" "struct uio *uio" "struct ucred *cred"

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.

LOCKS

The vnode should be locked on entry and will still be locked on exit.

RETURN VALUES

Zero is returned on success, otherwise an error code is returned.

PSEUDOCODE


int
vop_readlink(struct vnode *vp, struct uio *uio, struct ucred *cred)
{
int error = 0;


/*
* Read the target of the symlink.
*/
...;


return error;
}

ERRORS

[EIO] A read error occurred while reading the contents of the symlink.

SEE ALSO

uiomove(9), vnode(9)

AUTHORS


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013