Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hashtab.h File Reference

Go to the source code of this file.

Data Structures

struct  hashtab_node
 
struct  hashtab
 
struct  hashtab_info
 

Macros

#define HASHTAB_MAX_NODES   0xffffffff
 

Functions

struct hashtabhashtab_create (u32(*hash_value)(struct hashtab *h, const void *key), int(*keycmp)(struct hashtab *h, const void *key1, const void *key2), u32 size)
 
int hashtab_insert (struct hashtab *h, void *k, void *d)
 
voidhashtab_search (struct hashtab *h, const void *k)
 
void hashtab_destroy (struct hashtab *h)
 
int hashtab_map (struct hashtab *h, int(*apply)(void *k, void *d, void *args), void *args)
 
void hashtab_stat (struct hashtab *h, struct hashtab_info *info)
 

Macro Definition Documentation

#define HASHTAB_MAX_NODES   0xffffffff

Definition at line 13 of file hashtab.h.

Function Documentation

struct hashtab* hashtab_create ( u32(*)(struct hashtab *h, const void *key hash_value,
int(*)(struct hashtab *h, const void *key1, const void *key2)  keycmp,
u32  size 
)
read

Definition at line 11 of file hashtab.c.

void hashtab_destroy ( struct hashtab h)

Definition at line 93 of file hashtab.c.

int hashtab_insert ( struct hashtab h,
void k,
void d 
)

Definition at line 38 of file hashtab.c.

int hashtab_map ( struct hashtab h,
int(*)(void *k, void *d, void *args apply,
void args 
)

Definition at line 117 of file hashtab.c.

void* hashtab_search ( struct hashtab h,
const void k 
)

Definition at line 74 of file hashtab.c.

void hashtab_stat ( struct hashtab h,
struct hashtab_info info 
)

Definition at line 141 of file hashtab.c.