Lines Matching defs:key
4 * key values and datum values. The type of the key values
6 * functions for hash computation and key comparison are
21 u32 (*hash)(const void *key); /* hash function */
23 /* key comparison function */
27 void *key;
51 void *key, void *datum);
54 * Inserts the specified (key, datum) pair into the specified hash table.
57 * -EEXIST if there is already an entry with the same key,
61 static inline int hashtab_insert(struct hashtab *h, void *key, void *datum,
72 hvalue = key_params.hash(key) & (h->size - 1);
76 int cmp = key_params.cmp(key, cur->key);
87 key, datum);
91 * Searches for the entry with the specified key in the hash table.
93 * Returns NULL if no entry has the specified key or
96 static inline void *hashtab_search(struct hashtab *h, const void *key,
105 hvalue = key_params.hash(key) & (h->size - 1);
108 int cmp = key_params.cmp(key, cur->key);
125 * Applies the specified apply function to (key,datum,args)