20 #ifndef _NET_BATMAN_ADV_HASH_H_
21 #define _NET_BATMAN_ADV_HASH_H_
23 #include <linux/list.h>
67 for (i = 0; i < hash->
size; i++) {
71 spin_lock_bh(list_lock);
78 spin_unlock_bh(list_lock);
110 index = choose(data, hash->
size);
114 spin_lock_bh(list_lock);
117 if (!compare(node, data))
125 hlist_add_head_rcu(data_node, head);
130 spin_unlock_bh(list_lock);
148 void *data_save =
NULL;
150 index = choose(data, hash->
size);
155 if (!compare(node, data))