The OpenNET Project / Index page

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

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

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

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

  • BSD mandoc
     

    NAME

    
    
    vfs_mountedon
    
     - check if the vnode belongs to a mounted file system
    
     
    

    SYNOPSIS

       #include <sys/param.h>
       #include <sys/mount.h>
    int vfs_mountedon (struct vnode *vp);
     

    DESCRIPTION

    vfs_mountedon ();
    inspects the Vt mount structure in Fa vp to determine if it points to a valid mount point. If the mount is valid, the vnode is considered to be busy.

    A common use of vfs_mountedon ();
    is to call it on device vnodes to determine if they are already associated with a file system. This is done to prevent multiple mounts on the same device.  

    RETURN VALUES

    Er EBUSY is returned if the vnode has a valid mount point; otherwise, 0 is returned.  

    PSEUDOCODE

    int
    ffs_mountfs(devvp, mp, td, malloctype)
            register struct vnode *devvp;
            struct mount *mp;
            struct thread *td;
            struct malloc_type *malloctype;
    {
            ...
    
            error = vfs_mountedon(devvp);
            if (error)
                    return (error);
    
            ...
    }
    
     

    AUTHORS

    This manual page was written by An Chad David Aq davidc@acns.ab.ca .


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    PSEUDOCODE
    AUTHORS


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




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

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