Query: vop_remove
OS: opensolaris
Section: 9
Links: opensolaris man pages all man pages forum categories
Format:Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VOP_REMOVE(9) BSD Kernel Developer's Manual VOP_REMOVE(9)NAMEVOP_REMOVE, VOP_RMDIR -- remove a file or directorySYNOPSIS#include <sys/param.h> #include <sys/vnode.h> int VOP_REMOVE(struct vnode *dvp, struct vnode *vp, struct componentname *cnp); int VOP_RMDIR(struct vnode *dvp, struct vnode *vp, struct componentname *cnp);DESCRIPTIONThese entry points remove files and directories respectively. The arguments are: dvp The vnode of the directory. vp The vnode of the file to be removed. cnp Pathname information about the file.LOCKSBoth dvp and vp should be locked on entry and remain locked on return.RETURN VALUESZero is returned on success, otherwise an error code is returned.ERRORS[EPERM] The file is immutable. [ENOTEMPTY] An attempt was made to remove a directory which is not empty.SEE ALSOvnode(9), VOP_LOOKUP(9)AUTHORSThis manual page was written by Doug Rabson.BSDJuly 24, 1996 BSD