The VFS_MOUNT() macro expects only 2 arguments in the nmount world

(since revision 1.173 of src/sys/sys/mount.h).

Update its prototype, the argument list description and bump the date.
This commit is contained in:
Giorgos Keramidas 2005-01-07 10:57:33 +00:00
parent 74130150bd
commit c972b6d8df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139848

View File

@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd July 24, 1996
.Dd January 7, 2005
.Os
.Dt VFS_MOUNT 9
.Sh NAME
@ -39,29 +39,24 @@
.In sys/mount.h
.In sys/vnode.h
.Ft int
.Fn VFS_MOUNT "struct mount *mp" "char *path" "caddr_t data" "struct nameidata *ndp" "struct thread *td"
.Fn VFS_MOUNT "struct mount *mp" "struct thread *td"
.Sh DESCRIPTION
Mount a file system into the system's namespace.
The
.Fn VFS_MOUNT
macro mounts a file system into the system's namespace or updates the
attributes of an already mounted file system.
.Pp
Its arguments are:
The arguments it expects are:
.Bl -tag -width data
.It Fa mp
Structure representing the file system.
.It Fa path
Pathname where the file system is being mounted.
.It Fa data
File system specific data.
This should be read into the kernel using
.Xr copyin 9 .
.It Fa ndp
Contains the result of a
.Xr namei 9
call on the pathname of the mountpoint.
.It Fa td
Thread which is mounting the file system.
.El
.Pp
This is called both to mount new file systems and to change the
The
.Fn VFS_MOUNT
macro is called both to mount new file systems and to change the
attributes of an existing file system.
If the
.Dv MNT_UPDATE