| VFSSUBR(9) | Kernel Developer's Manual | VFSSUBR(9) | 
vfssubr, vfs_getnewfsid,
  vfs_getvfs, vfs_export,
  vfs_showexport,
  vfs_export_lookup,
  vfs_setpublicfs,
  vfs_mountedon, vfs_mountroot,
  vfs_unmountall, vfs_busy,
  vfs_unbusy, vfs_mountalloc,
  vfs_rootmountalloc,
  vfs_shutdown, vfs_attach,
  vfs_detach, vfs_reinit,
  vfs_getopsbyname, vfs_suspend,
  vfs_resume,
  vfs_vnode_iterator_init,
  vfs_vnode_iterator_destroy,
  vfs_vnode_iterator_next —
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/vnode.h>
void
  
  vfs_getnewfsid(struct
    mount *mp);
struct mount *
  
  vfs_getvfs(fsid_t
    *fsid);
int
  
  vfs_export_lookup(struct
    mount *mp, struct
    netexport *nep, struct
    export_args *argp);
int
  
  vfs_setpublicfs(struct
    mount *mp, struct
    netexport *nep, struct
    export_args *argp);
int
  
  vfs_mountedon(struct
    vnode *vp);
int
  
  vfs_mountroot(void);
void
  
  vfs_unmountall(struct
    lwp *l);
int
  
  vfs_busy(struct
    mount *mp);
void
  
  vfs_unbusy(struct
    mount *mp);
struct mount *
  
  vfs_mountalloc(struct
    vfsops *vfs, struct vnode
    *vp);
int
  
  vfs_rootmountalloc(char
    *fstypename, char
    *devname, struct mount
    **mpp);
void
  
  vfs_shutdown(void);
int
  
  vfs_attach(struct
    vfsops *vfs);
int
  
  vfs_detach(struct
    vfsops *vfs);
void
  
  vfs_reinit(void);
struct vfsops *
  
  vfs_getopsbyname(const
    char *name);
int
  
  vfs_suspend(struct
    mount *mp, int
    nowait);
void
  
  vfs_resume(struct
    mount *mp);
void
  
  vfs_vnode_iterator_init(struct
    mount *mp, struct
    vnode_iterator **vip);
void
  
  vfs_vnode_iterator_destroy(struct
    vnode_iterator *vi);
struct vnode *
  
  vfs_vnode_iterator_next(struct
    vnode_iterator *vi, bool
    (*selector)(void *context, struct vnode *vpp),
    void *context);
vfs_getnewfsid(mp)vfs_getvfs(fsid)vfs_export_lookup(mp,
    nep, argp)vfs_setpublicfs(mp,
    nep, argp)vfs_mountedon(vp)vfs_mountroot(void)vfs_unmountall(l)vfs_busy(mp)vfs_unbusy(mp)vfs_busy() on the mount point specified by
      mp.vfs_mountalloc(vfsops,
    vp)NULL.vfs_rootmountalloc(fstypename,
    devname, mpp)vfs_shutdown()vfs_attach(vfs)vfs_detach(vfs)vfs_reinit(void)vfs_getopsbyname(name)NULL if file system isn't present in the
    kernel.vfs_suspend(mp,
    nowait)EWOULDBLOCK is
      returned. If the operation is successful, zero is returned, otherwise an
      appropriate error code is returned.vfs_resume(mp)vfs_vnode_iterator_init(mp,
    vip)vfs_vnode_iterator_destroy(vi)vfs_vnode_iterator_next(vi,
    selector, context)NULL. If an optional
      selector function is provided, then this function is
      called with the context provided and the candidate
      vnode to be returned. If the selector returns
      false, then the vnode is skipped; if it returns
      true, the vnode is referenced and then
    returned.| April 17, 2017 | NetBSD 10.0 |