hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/hashtable.h
....@@ -145,7 +145,7 @@
145145 * hash entry
146146 * @name: hashtable to iterate
147147 * @bkt: integer to use as bucket loop cursor
148
- * @tmp: a &struct used for temporary storage
148
+ * @tmp: a &struct hlist_node used for temporary storage
149149 * @obj: the type * to use as a loop cursor for each entry
150150 * @member: the name of the hlist_node within the struct
151151 */
....@@ -173,9 +173,9 @@
173173 * @member: the name of the hlist_node within the struct
174174 * @key: the key of the objects to iterate over
175175 */
176
-#define hash_for_each_possible_rcu(name, obj, member, key) \
176
+#define hash_for_each_possible_rcu(name, obj, member, key, cond...) \
177177 hlist_for_each_entry_rcu(obj, &name[hash_min(key, HASH_BITS(name))],\
178
- member)
178
+ member, ## cond)
179179
180180 /**
181181 * hash_for_each_possible_rcu_notrace - iterate over all possible objects hashing
....@@ -197,7 +197,7 @@
197197 * same bucket safe against removals
198198 * @name: hashtable to iterate
199199 * @obj: the type * to use as a loop cursor for each entry
200
- * @tmp: a &struct used for temporary storage
200
+ * @tmp: a &struct hlist_node used for temporary storage
201201 * @member: the name of the hlist_node within the struct
202202 * @key: the key of the objects to iterate over
203203 */