#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mount.h>
#include <sys/vnode.h>
Go to the source code of this file.
|
| __FBSDID ("$BSDSUniX$") |
|
static | MALLOC_DEFINE (M_VFS_HASH,"vfs_hash","VFS hash table") |
|
static | LIST_HEAD (vfs_hash_head, vnode) |
|
| SYSINIT (vfs_hash, SI_SUB_VFS, SI_ORDER_SECOND, vfs_hashinit, NULL) |
|
u_int | vfs_hash_index (struct vnode *vp) |
|
static struct vfs_hash_head * | vfs_hash_bucket (const struct mount *mp, u_int hash) |
|
int | vfs_hash_get (const struct mount *mp, u_int hash, int flags, struct thread *td, struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) |
|
void | vfs_hash_remove (struct vnode *vp) |
|
int | vfs_hash_insert (struct vnode *vp, u_int hash, int flags, struct thread *td, struct vnode **vpp, vfs_hash_cmp_t *fn, void *arg) |
|
void | vfs_hash_rehash (struct vnode *vp, u_int hash) |
|
__FBSDID |
( |
"$BSDSUniX$" |
| ) |
|
static LIST_HEAD |
( |
vfs_hash_head |
, |
|
|
vnode |
|
|
) |
| |
|
static |
static MALLOC_DEFINE |
( |
M_VFS_HASH |
, |
|
|
"vfs_hash" |
, |
|
|
"VFS hash table" |
|
|
) |
| |
|
static |
SYSINIT |
( |
vfs_hash |
, |
|
|
SI_SUB_VFS |
, |
|
|
SI_ORDER_SECOND |
, |
|
|
vfs_hashinit |
, |
|
|
NULL |
|
|
) |
| |
static struct vfs_hash_head* vfs_hash_bucket |
( |
const struct mount * |
mp, |
|
|
u_int |
hash |
|
) |
| |
|
static |
int vfs_hash_get |
( |
const struct mount * |
mp, |
|
|
u_int |
hash, |
|
|
int |
flags, |
|
|
struct thread * |
td, |
|
|
struct vnode ** |
vpp, |
|
|
vfs_hash_cmp_t * |
fn, |
|
|
void * |
arg |
|
) |
| |
u_int vfs_hash_index |
( |
struct vnode * |
vp | ) |
|
int vfs_hash_insert |
( |
struct vnode * |
vp, |
|
|
u_int |
hash, |
|
|
int |
flags, |
|
|
struct thread * |
td, |
|
|
struct vnode ** |
vpp, |
|
|
vfs_hash_cmp_t * |
fn, |
|
|
void * |
arg |
|
) |
| |
void vfs_hash_rehash |
( |
struct vnode * |
vp, |
|
|
u_int |
hash |
|
) |
| |
void vfs_hash_remove |
( |
struct vnode * |
vp | ) |
|