table of contents
|VOP_REMOVE(9)||Kernel Developer's Manual||VOP_REMOVE(9)|
NAME¶VOP_REMOVE, VOP_RMDIR — remove a file or directory
#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);
DESCRIPTION¶These entry points remove files and directories respectively. The arguments are:
- The vnode of the directory.
- The vnode of the file to be removed.
- Pathname information about the file.
LOCKS¶Both dvp and vp should be locked on entry and remain locked on return.
RETURN VALUES¶Zero is returned on success, otherwise an error code is returned.
- The file is immutable.
- An attempt was made to remove a directory which is not empty.
SEE ALSO¶vnode(9), VOP_LOOKUP(9)
AUTHORS¶This manual page was written by Doug Rabson.
|July 24, 1996||Debian|