GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

     VOP_LINK — create a new name for a file

SYNOPSIS

     #include <sys/param.h>
     #include <sys/vnode.h>

     int
     VOP_LINK(struct vnode *dvp, struct vnode *vp, struct componentname *cnp);

DESCRIPTION

     This links a new name in the specified directory to an existing file.

     Its arguments are:

     dvp       The vnode of the directory.

     vp        The vnode of the file to be linked.

     cnp       Pathname information about the file.

     The pathname info should not be released on exit because it is done by
     the caller.  The directory and file vnodes should not be released on
     exit.

LOCKS

     VOP_LINK() expects the directory and file vnodes to be locked on entry
     and will leave the vnodes locked on return.

RETURN VALUES

     Zero is returned if the file was linked successfully, otherwise an error
     is returned.

ERRORS

     [EMLINK]           The file has too many links.

     [EPERM]            The file is immutable.

     [EXDEV]            A hard link is not possible between different file
                        systems.

SEE ALSO

     vn_lock(9), vnode(9)

AUTHORS

     This manual page was originally written by Doug Rabson.



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.186 seconds. Last modified: November 04 2018 12:49:43.