diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 05:23:45 -0500 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2013-12-16 05:23:45 -0500 |
| commit | c4de673b775e4db48cd2db6277e0c6714332ca0c (patch) | |
| tree | 84f9e4728e6ccf257236d2ba063b6e784ec8b65d /include/linux/hashtable.h | |
| parent | bafdc614a1f4f8be8cde41b8ab10ac17e67c1837 (diff) | |
| parent | 55957fb7a0b61d8ab6ff3f04e279b8fc22b738fa (diff) | |
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
Diffstat (limited to 'include/linux/hashtable.h')
| -rw-r--r-- | include/linux/hashtable.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/hashtable.h b/include/linux/hashtable.h index a9df51f5d54c..519b6e2d769e 100644 --- a/include/linux/hashtable.h +++ b/include/linux/hashtable.h | |||
| @@ -174,6 +174,21 @@ static inline void hash_del_rcu(struct hlist_node *node) | |||
| 174 | member) | 174 | member) |
| 175 | 175 | ||
| 176 | /** | 176 | /** |
| 177 | * hash_for_each_possible_rcu_notrace - iterate over all possible objects hashing | ||
| 178 | * to the same bucket in an rcu enabled hashtable in a rcu enabled hashtable | ||
| 179 | * @name: hashtable to iterate | ||
| 180 | * @obj: the type * to use as a loop cursor for each entry | ||
| 181 | * @member: the name of the hlist_node within the struct | ||
| 182 | * @key: the key of the objects to iterate over | ||
| 183 | * | ||
| 184 | * This is the same as hash_for_each_possible_rcu() except that it does | ||
| 185 | * not do any RCU debugging or tracing. | ||
| 186 | */ | ||
| 187 | #define hash_for_each_possible_rcu_notrace(name, obj, member, key) \ | ||
| 188 | hlist_for_each_entry_rcu_notrace(obj, \ | ||
| 189 | &name[hash_min(key, HASH_BITS(name))], member) | ||
| 190 | |||
| 191 | /** | ||
| 177 | * hash_for_each_possible_safe - iterate over all possible objects hashing to the | 192 | * hash_for_each_possible_safe - iterate over all possible objects hashing to the |
| 178 | * same bucket safe against removals | 193 | * same bucket safe against removals |
| 179 | * @name: hashtable to iterate | 194 | * @name: hashtable to iterate |
