|
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 (sizeof(primes) / sizeof(primes[0])) |
Functions | |
| __FBSDID ("$BSDSUniX$") | |
| 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 (int elements, struct malloc_type *type, u_long *nentries) |
Variables | |
| static const int | primes [] |
Definition at line 103 of file subr_hash.c.
Referenced by phashinit().
| __FBSDID | ( | "$BSDSUniX$" | ) |
| void hashdestroy | ( | void * | vhashtbl, |
| struct malloc_type * | type, | ||
| u_long | hashmask | ||
| ) |
Definition at line 90 of file subr_hash.c.
References free(), and LIST_HEAD().
Referenced by ksem_module_destroy().


| void* hashinit | ( | int | elements, |
| struct malloc_type * | type, | ||
| u_long * | hashmask | ||
| ) |
Definition at line 83 of file subr_hash.c.
References hashinit_flags().
Referenced by kqueue_expand(), ksem_module_init(), LIST_HEAD(), nchinit(), procinit(), shm_init(), threadinit(), uihashinit(), and vntblinit().


| void* hashinit_flags | ( | int | elements, |
| struct malloc_type * | type, | ||
| u_long * | hashmask, | ||
| int | flags | ||
| ) |
Definition at line 48 of file subr_hash.c.
References LIST_HEAD(), and malloc().
Referenced by hashinit().


| void* phashinit | ( | int | elements, |
| struct malloc_type * | type, | ||
| u_long * | nentries | ||
| ) |
Definition at line 109 of file subr_hash.c.
References LIST_HEAD(), malloc(), NPRIMES, and primes.

|
static |
Definition at line 100 of file subr_hash.c.
Referenced by phashinit().