The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    vinvalbuf
    
     - flushes and invalidates all buffers associated with a vnode
    
     
    

    SYNOPSIS

       #include <sys/param.h>
       #include <sys/vnode.h>
    int vinvalbuf (struct vnode *vp int flags struct ucred *cred struct thread *td int slpflag int slptimeo);
     

    DESCRIPTION

    The vinvalbuf ();
    function invalidates all of the buffers associated with the given vnode. This includes buffers on the clean list and the dirty list. If the V_SAVE flag is specified then the buffers on the dirty list are synced prior to being released. If there is a VM Object associated with the vnode, it is removed.

    Its arguments are:

    Fa vp
    A pointer to the vnode whose buffers will be invalidated.
    Fa flags
    The only supported flag is V_SAVE and it indicates that dirty buffers should be synced with the disk.
    Fa cred
    The user credentials that are used to VOP_FSYNC9 buffers if V_SAVE is set.
    Fa td
    The thread responsible for this call.
    Fa slpflag
    The slp flag that will be used in the priority of any sleeps in the function.
    Fa slptimeo
    The timeout for any sleeps in the function.

     

    LOCKS

    The vnode is assumed to be locked prior to the call and remains locked upon return.

    Giant must be held by prior to the call and remains locked upon return.  

    RETURN VALUES

    A 0 value is returned on success.  

    PSEUDOCODE

    vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td);
    error = vinvalbuf(devvp, V_SAVE, cred, td, 0, 0);
    VOP_UNLOCK(devvp, 0, td);
    if (error)
            return (error);
    
     

    ERRORS

    Bq Er ENOSPC
    The file system is full. (With V_SAVE
    Bq Er EDQUOT
    Disc quota exceeded. (With V_SAVE
    Bq Er EWOULDBLOCK
    Sleep operation timed out. (See Fa slptimeo )
    Bq Er ERESTART
    A signal needs to be delivered and the system call should be restarted. (With PCATCH set in Fa slpflag )
    Bq Er EINTR
    The system has been interrupted by a signal. (With PCATCH set in Fa slpflag )

     

    SEE ALSO

    brelse(9), bremfree(9), tsleep(9), VOP_FSYNC9  

    AUTHORS

    This manual page was written by An Chad David Aq [email protected] .


     

    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
    Добавить, Поддержать, Вебмастеру