FreeBSD 7.0 manual page repository

FreeBSD is a free computer operating system based on BSD UNIX originally. Many IT companies, like DeployIS is using it to provide an up-to-date, stable operating system.

vfs_getvfs - returns a mount point given its file system identifier



      vfs_getvfs - returns a mount point given its file system identifier


      #include <sys/param.h>
      #include <sys/mount.h>
      struct mount *
      vfs_getvfs(fsid_t *fsid);


      The vfs_getvfs() function returns the mount point structure for a file
      system given its file system identifier.  The file system ID should have
      been allocated by calling vfs_getnewfsid(9); otherwise, it will not be
      A major user of vfs_getvfs() is NFS, which uses the fsid as part of file
      handles in order to determine the file system a given RPC is for.  If
      vfs_getvfs() fails to find the mount point related to fsid, the file sys‐
      tem is considered stale.
      If fsid is found, the mount point for the ID is returned; otherwise, NULL
      is returned.


      if ((mp = vfs_getvfs(&fhp->fh_fsid)) == NULL) {
              error = ESTALE;
              goto out;


      This manual page was written by Chad David 〈〉.


Based on BSD UNIX
FreeBSD is an advanced operating system for x86 compatible (including Pentium and Athlon), amd64 compatible (including Opteron, Athlon64, and EM64T), UltraSPARC, IA-64, PC-98 and ARM architectures. It is derived from BSD, the version of UNIX developed at the University of California, Berkeley. It is developed and maintained by a large team of individuals. Additional platforms are in various stages of development.