X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_hashtable.h;h=2806632595009655c5d9b9208693fe3d3e34a9f0;hb=4931bc084ced4bcb172c7bcb197ab55b1c9bdf80;hp=6dc69e9a9f75b8073dfae6f5ce79402722ac17a1;hpb=513222398724762540dea9cbe9aea6e1578c80ac;p=palacios.git diff --git a/palacios/include/palacios/vmm_hashtable.h b/palacios/include/palacios/vmm_hashtable.h index 6dc69e9..2806632 100644 --- a/palacios/include/palacios/vmm_hashtable.h +++ b/palacios/include/palacios/vmm_hashtable.h @@ -97,16 +97,6 @@ struct hashtable; * */ - - - -/* These cannot be inlined because they are referenced as fn ptrs */ -ulong_t v3_hash_long(ulong_t val, uint_t bits); -ulong_t v3_hash_buffer(uchar_t * msg, uint_t length); - - - - #define DEFINE_HASHTABLE_INSERT(fnname, keytype, valuetype) \ static int fnname (struct hashtable * htable, keytype key, valuetype value) { \ return v3_htable_insert(htable, (addr_t)key, (addr_t)value); \ @@ -126,6 +116,11 @@ ulong_t v3_hash_buffer(uchar_t * msg, uint_t length); +/* These cannot be inlined because they are referenced as fn ptrs */ +ulong_t v3_hash_long(ulong_t val, uint_t bits); +ulong_t v3_hash_buffer(uchar_t * msg, uint_t length); + + struct hashtable * v3_create_htable(uint_t min_size, uint_t (*hashfunction) (addr_t key), @@ -186,6 +181,7 @@ struct hashtable_iter { struct hashtable_iter * v3_create_htable_iter(struct hashtable * htable); +void v3_destroy_htable_iter(struct hashtable_iter * iter); /* - return the value of the (key,value) pair at the current position */ //extern inline