Changeset 80bcaed in mainline for kernel/generic/include/adt/hash_table.h
- Timestamp:
- 2007-02-03T13:22:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f619ec11
- Parents:
- fa8e7d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/hash_table.h
rfa8e7d2 r80bcaed 43 43 /** Hash function. 44 44 * 45 * @param key Array of keys needed to compute hash index. All keys must be passed. 45 * @param key Array of keys needed to compute hash index. All keys must 46 * be passed. 46 47 * 47 48 * @return Index into hash table. … … 51 52 /** Hash table item comparison function. 52 53 * 53 * @param key Array of keys that will be compared with item. It is not necessary to pass all keys. 54 * @param key Array of keys that will be compared with item. It is not 55 * necessary to pass all keys. 54 56 * 55 57 * @return true if the keys match, false otherwise. … … 72 74 } hash_table_t; 73 75 74 #define hash_table_get_instance(item, type, member) list_get_instance((item), type, member) 76 #define hash_table_get_instance(item, type, member) \ 77 list_get_instance((item), type, member) 75 78 76 extern void hash_table_create(hash_table_t *h, count_t m, count_t max_keys, hash_table_operations_t *op); 79 extern void hash_table_create(hash_table_t *h, count_t m, count_t max_keys, 80 hash_table_operations_t *op); 77 81 extern void hash_table_insert(hash_table_t *h, unative_t key[], link_t *item); 78 82 extern link_t *hash_table_find(hash_table_t *h, unative_t key[]);
Note:
See TracChangeset
for help on using the changeset viewer.