FreeBSD/sys/fs/nfsserver/nfs_nfsdport.c
/*
 * BSD specific initialization of a mount point.
 */
BSD specific initialization of a mount point.
BSD specific initialization of a mount point .
void
nfsd_mntinit(void)
{
	static int inited = 0;
	if (inited)
		return;
	inited = 1;
	nfsv4root_mnt.mnt_flag = (MNT_RDONLY | MNT_EXPORTED);
	TAILQ_INIT(&nfsv4root_mnt.mnt_nvnodelist);
	TAILQ_INIT(&nfsv4root_mnt.mnt_activevnodelist);
	nfsv4root_mnt.mnt_export = NULL;
	TAILQ_INIT(&nfsv4root_opt);
	TAILQ_INIT(&nfsv4root_newopt);
	nfsv4root_mnt.mnt_opt = &nfsv4root_opt;
	nfsv4root_mnt.mnt_optnew = &nfsv4root_newopt;
	nfsv4root_mnt.mnt_nvnodelistsize = 0;
	nfsv4root_mnt.mnt_activevnodelistsize = 0;
}
void nfsd_mntinit ( void ) { static int inited = 0 ; if ( inited ) return ; inited = 1 ; nfsv4root_mnt . mnt_flag = ( MNT_RDONLY | MNT_EXPORTED ) ; TAILQ_INIT ( & nfsv4root_mnt . mnt_nvnodelist ) ; TAILQ_INIT ( & nfsv4root_mnt . mnt_activevnodelist ) ; nfsv4root_mnt . mnt_export = NULL ; TAILQ_INIT ( & nfsv4root_opt ) ; TAILQ_INIT ( & nfsv4root_newopt ) ; nfsv4root_mnt . mnt_opt = & nfsv4root_opt ; nfsv4root_mnt . mnt_optnew = & nfsv4root_newopt ; nfsv4root_mnt . mnt_nvnodelistsize = 0 ; nfsv4root_mnt . mnt_activevnodelistsize = 0 ; }
BSD specific initialization of a mount point.
BSD specific initialization of a mount point .