The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

VOP_REMOVE (9)
  • >> VOP_REMOVE (9) ( FreeBSD man: Ядро )

  • BSD mandoc
     

    NAME

    VOP_REMOVE
    
     
    VOP_RMDIR
    
     - remove a file or directory
    
     
    

    SYNOPSIS

       #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);
     

    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.  

    PSEUDOCODE

    int
    vop_remove(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
    {
        int error = 0;
    
        if (vp is immutable) {
            error = EPERM;
            goto out;
        }
    
        /*
         * Remove name cnp->cn_nameptr from directory and update link count
         * of vp.
         */
        ...;
    
        return error;
    }
    
     

    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 .


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    LOCKS
    RETURN VALUES
    PSEUDOCODE
    ERRORS
    SEE ALSO
    AUTHORS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру