FreeBSD kernel kern code
|
#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>
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 vfsconf * | vfs_byname (const char *name) |
struct vfsconf * | vfs_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 |
__FBSDID | ( | "$BSDSUniX$" | ) |
MALLOC_DEFINE | ( | M_VNODE | , |
"vnodes" | , | ||
"Dynamically allocated vnodes" | |||
) |
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." | |||
) |
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().
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().
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().
|
static |
Definition at line 153 of file vfs_init.c.
References maxvfsconf, printf(), sysctl_lock(), sysctl_register_oid(), sysctl_unlock(), sysctl_unregister_oid(), va_null, vattr_null(), vfs_byname(), vfs_stdcheckexp(), vfs_stdextattrctl(), vfs_stdfhtovp(), vfs_stdinit(), vfs_stdnosync(), vfs_stdquotactl(), vfs_stdroot(), vfs_stdstatfs(), vfs_stdsysctl(), vfs_stduninit(), vfs_stdvget(), vfs_typenumhash, and vfsconf.
Referenced by vfs_modevent().
|
static |
Definition at line 291 of file vfs_init.c.
References maxvfsconf, vfs_byname(), and vfsconf.
Referenced by vfs_modevent().
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().
|
static |
Definition at line 74 of file vfs_init.c.
Referenced by vfs_register().
struct vfsconfhead vfsconf = TAILQ_HEAD_INITIALIZER(vfsconf) |
Definition at line 66 of file vfs_init.c.
Referenced by sys_mount(), sysctl_ovfs_conf(), sysctl_vfs_conflist(), vfs_byname(), vfs_byname_kld(), vfs_domount(), vfs_modevent(), vfs_mountroot_devfs(), vfs_register(), vfs_sysctl(), and vfs_unregister().