FreeBSD kernel kern code
vfs_init.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/fnv_hash.h>
#include <sys/kernel.h>
#include <sys/linker.h>
#include <sys/mount.h>
#include <sys/proc.h>
#include <sys/syscallsubr.h>
#include <sys/sysctl.h>
#include <sys/vnode.h>
#include <sys/malloc.h>
Include dependency graph for vfs_init.c:

Go to the source code of this file.

Functions

 __FBSDID ("$BSDSUniX$")
 
static int vfs_register (struct vfsconf *)
 
static int vfs_unregister (struct vfsconf *)
 
 MALLOC_DEFINE (M_VNODE,"vnodes","Dynamically allocated vnodes")
 
 TUNABLE_INT ("vfs.typenumhash",&vfs_typenumhash)
 
 SYSCTL_INT (_vfs, OID_AUTO, typenumhash, CTLFLAG_RDTUN,&vfs_typenumhash, 0,"Set vfc_typenum using a hash calculation on vfc_name, so that it does not""change when file systems are loaded in a different order.")
 
struct vfsconfvfs_byname (const char *name)
 
struct vfsconfvfs_byname_kld (const char *fstype, struct thread *td, int *error)
 
int vfs_modevent (module_t mod, int type, void *data)
 

Variables

int maxvfsconf = VFS_GENERIC + 1
 
struct vfsconfhead vfsconf = TAILQ_HEAD_INITIALIZER(vfsconf)
 
static int vfs_typenumhash = 1
 
struct vattr va_null
 

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
MALLOC_DEFINE ( M_VNODE  ,
"vnodes"  ,
"Dynamically allocated vnodes"   
)
SYSCTL_INT ( _vfs  ,
OID_AUTO  ,
typenumhash  ,
CTLFLAG_RDTUN  ,
vfs_typenumhash,
,
"Set vfc_typenum using a hash calculation on  vfc_name,
so that it does not""change when file systems are loaded in a different order."   
)
TUNABLE_INT ( "vfs.typenumhash"  ,
vfs_typenumhash 
)
struct vfsconf* vfs_byname ( const char *  name)

Definition at line 109 of file vfs_init.c.

References vfsconf.

Referenced by parse_mount(), vfs_byname_kld(), vfs_domount(), vfs_mountroot_devfs(), vfs_register(), and vfs_unregister().

Here is the caller graph for this function:

struct vfsconf* vfs_byname_kld ( const char *  fstype,
struct thread *  td,
int *  error 
)

Definition at line 122 of file vfs_init.c.

References kern_kldload(), kern_kldunload(), vfs_byname(), and vfsconf.

Referenced by sys_mount(), and vfs_domount().

Here is the call graph for this function:

Here is the caller graph for this function:

int vfs_modevent ( module_t  mod,
int  type,
void *  data 
)

Definition at line 322 of file vfs_init.c.

References vfs_register(), vfs_unregister(), and vfsconf.

Referenced by mq_modload().

Here is the call graph for this function:

Here is the caller graph for this function:

static int vfs_register ( struct vfsconf vfc)
static
static int vfs_unregister ( struct vfsconf vfc)
static

Definition at line 291 of file vfs_init.c.

References maxvfsconf, vfs_byname(), and vfsconf.

Referenced by vfs_modevent().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

int maxvfsconf = VFS_GENERIC + 1

Definition at line 60 of file vfs_init.c.

Referenced by vfs_register(), vfs_sysctl(), and vfs_unregister().

struct vattr va_null

Definition at line 85 of file vfs_init.c.

Referenced by vfs_register().

int vfs_typenumhash = 1
static

Definition at line 74 of file vfs_init.c.

Referenced by vfs_register().

struct vfsconfhead vfsconf = TAILQ_HEAD_INITIALIZER(vfsconf)