Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hashtab.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include "hashtab.h"

Go to the source code of this file.


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 *key, void *datum)
voidhashtab_search (struct hashtab *h, const void *key)
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)

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 

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 key,
void datum 

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 key 

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.