int vn_rmdir (vp, dp, pname, crp) struct vnode *vp; struct vnode *dp; char *pname; struct ucred *crp;
The vn_rmdir entry point is invoked by the logical file system to remove a directory object. To remove a directory, the directory must be empty (except for the current and parent directories). Before removing the directory, the logical file system ensures the following:
Note: The vp and dp parameters' v-nodes (virtual nodes) are held for the duration of the routine.
The vn_rmdir entry point can be called from the process environment only.
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.
The rmdir subroutine.
Virtual File System Overview, Virtual File System Kernel Extensions Overview, Logical File System Overview, Understanding Virtual Nodes (V-nodes) in AIX Kernel Extensions and Device Support Programming Concepts.
List of Virtual File System Operations.