FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
Go to the source code of this file.
Macros | |
#define | NPRIMES nitems(primes) |
Functions | |
__FBSDID ("$FreeBSD$") | |
static __inline int | hash_mflags (int flags) |
void * | hashinit_flags (int elements, struct malloc_type *type, u_long *hashmask, int flags) |
void * | hashinit (int elements, struct malloc_type *type, u_long *hashmask) |
void | hashdestroy (void *vhashtbl, struct malloc_type *type, u_long hashmask) |
void * | phashinit_flags (int elements, struct malloc_type *type, u_long *nentries, int flags) |
void * | phashinit (int elements, struct malloc_type *type, u_long *nentries) |
Variables | |
static const int | primes [] |
#define NPRIMES nitems(primes) |
Definition at line 107 of file subr_hash.c.
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 47 of file subr_hash.c.
References flags.
Referenced by hashinit_flags(), and phashinit_flags().
void hashdestroy | ( | void * | vhashtbl, |
struct malloc_type * | type, | ||
u_long | hashmask | ||
) |
Definition at line 93 of file subr_hash.c.
References free(), LIST_HEAD(), and type.
Referenced by ksem_module_destroy().
void * hashinit | ( | int | elements, |
struct malloc_type * | type, | ||
u_long * | hashmask | ||
) |
Definition at line 86 of file subr_hash.c.
References hashinit_flags(), and type.
Referenced by ksem_module_init(), procinit(), shm_init(), threadinit(), uihashinit(), vfs_hash_changesize(), and vntblinit().
void * hashinit_flags | ( | int | elements, |
struct malloc_type * | type, | ||
u_long * | hashmask, | ||
int | flags | ||
) |
Definition at line 57 of file subr_hash.c.
References flags, hash_mflags(), LIST_HEAD(), malloc(), and type.
Referenced by hashinit(), and kqueue_expand().
void * phashinit | ( | int | elements, |
struct malloc_type * | type, | ||
u_long * | nentries | ||
) |
Definition at line 148 of file subr_hash.c.
References phashinit_flags(), and type.
void * phashinit_flags | ( | int | elements, |
struct malloc_type * | type, | ||
u_long * | nentries, | ||
int | flags | ||
) |
Definition at line 114 of file subr_hash.c.
References flags, hash_mflags(), LIST_HEAD(), malloc(), NPRIMES, primes, and type.
Referenced by phashinit().
|
static |
Definition at line 104 of file subr_hash.c.
Referenced by phashinit_flags().