*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> VFS_MOUNT (9)              



NAME    [Toc]    [Back]

     VFS_MOUNT -- mount a file system

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/mount.h>
     #include <sys/vnode.h>

     VFS_MOUNT(struct mount *mp, char *path, caddr_t data,
	 struct nameidata *ndp, struct thread *td);

DESCRIPTION    [Toc]    [Back]

     Mount a file system into the system's namespace.

     Its arguments are:

     mp    Structure representing the file system.

     path  Pathname where the file system is being mounted.

     data  File system specific data.  This should be read into the kernel
	   using copyin(9).

     ndp   Contains the result of a namei(9) call on the pathname of the

     td    Thread which is mounting the file system.

     This is called both to mount new file systems and to change the
     attributes of an existing file system.  If the MNT_UPDATE flag is set in
     mp->mnt_flag then the file system should update its internal state from
     the value of mp->mnt_flag.  This can be used, for instance, to convert a
     read-only file system to read-write.  It is also used by mountd(8) to
     update the NFS export information for the file system.

     If the MNT_UPDATE flag is not specified, then this is a newly mounted
     file system.  The file system code should allocate and initialize any
     private data needed to represent the file system (it can use the
     mp->mnt_data field to store this information).

SEE ALSO    [Toc]    [Back]

     VFS(9), vnode(9)

AUTHORS    [Toc]    [Back]

     This manual page was written by Doug Rabson.

FreeBSD 5.2.1			 July 24, 1996			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
mount_nullfs FreeBSD mount a loopback file system sub-tree; demonstrate the use of a null file system layer
setup Linux setup devices and file systems, mount root file system
mount_msdosfs FreeBSD mount an MS-DOS file system
mount_udf FreeBSD mount a UDF file system
mount_msdos OpenBSD mount an MS-DOS file system
mount_ntfs OpenBSD mount an NTFS file system
unmount NetBSD mount or dismount a file system
mount NetBSD mount or dismount a file system
mount FreeBSD mount or dismount a file system
unmount FreeBSD mount or dismount a file system
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service