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
, int flags
, struct simplelock *interlkp
)
void
vfs_unbusy(
struct mount *mp
)
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
)
mp
)
mp
.
The file system id type is stored in
mp->mnt_stat.f_fsidx.
fsid
)
fsid
.
mp
, nep
, argp
)
mp
.
The argument
nam
is the address of the networked client.
This function is used by file system type specific functions to verify
that the client can access the file system.
mp
, nep
, argp
)
mp
.
vp
)
vp
.
void
)
l
)
mp
, flags
, interlkp
)
mp
as busy.
This function is used to synchronize access and to delay unmounting.
The interlock specified by argument
interlkp
is not released on failure.
mp
)
mp
.
fstypename
, devname
, mpp
)
fstypename
and if found allocate and initialise a mount structure for it.
The allocated mount structure is returned in the address specified by
mpp
.
The device the root file system was mounted from is specified by the
argument
devname
and is recorded in the new mount structure.
)
vfs
)
vfs
and initialise it.
vfs
)
vfs
from the kernel.
void
)
name
)
name
,
look up the vfs operations for that file system (see
vfsops(9)),
or return
NULL
if file system isn't present in the kernel.
mp
, nowait
)
nowait
is set
EWOULDBLOCK
is returned.
If the operation is successful, zero is returned, otherwise an
appropriate error code is returned.
mp
)
/usr/src
.
The vfs interface functions are implemented within the files
sys/kern/vfs_subr.c
,
sys/kern/vfs_subr2.c
,
and
sys/kern/vfs_init.c
.