VOP_REMOVE.9freebsd

Langue: en

Autres versions - même langue

Version: 365395 (ubuntu - 25/10/10)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

VOP_REMOVE VOP_RMDIR - remove a file or directory

SYNOPSIS

In sys/param.h In sys/vnode.h Ft int Fn VOP_REMOVE struct vnode *dvp struct vnode *vp struct componentname *cnp Ft int Fn VOP_RMDIR struct vnode *dvp struct vnode *vp struct componentname *cnp

DESCRIPTION

These entry points remove files and directories respectively.

The arguments are:

Fa dvp
The vnode of the directory.
Fa vp
The vnode of the file to be removed.
Fa cnp
Pathname information about the file.

LOCKS

Both Fa dvp and Fa vp should be locked on entry and remain locked on return.

RETURN VALUES

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

ERRORS

Bq Er EPERM
The file is immutable.
Bq Er ENOTEMPTY
An attempt was made to remove a directory which is not empty.

SEE ALSO

vnode(9), VOP_LOOKUP9

AUTHORS

This manual page was written by An Doug Rabson .