Lines Matching refs:elt
16 * Look up something in a shared memory hash table. The "elt" argument
23 * elt: the item for which we are searching in the hash table.
26 * hash_func: the hash function that operates on elements of the type of elt
27 * cmp_func: compare elements of the type of elt with those in the table (of
33 #define HASHLOOKUP(begin, type, field, elt, r, n, hash, cmp) do { \
37 __ndx = hash(elt) % (n); \
41 if (cmp(elt, r)) \
53 * elt: the item to be inserted.
55 * hash_func: the hash function that operates on elements of the type of elt
57 #define HASHINSERT(begin, type, field, elt, n, hash) do { \
61 __ndx = hash(elt) % (n); \
63 SH_TAILQ_INSERT_HEAD(__bucket, elt, field, type); \
68 * Remove the entry with a key == elt.
72 * elt: the item to be deleted.
74 * hash_func: the hash function that operates on elements of the type of elt
75 * cmp_func: compare elements of the type of elt with those in the table (of
78 #define HASHREMOVE(begin, type, field, elt, n, hash, cmp) { \
83 __ndx = hash(elt) % (n); \
85 HASHLOOKUP(begin, type, field, elt, __entp, n, hash, cmp); \
97 * hash_func: the hash function that operates on elements of the type of elt