qcacmn: Add qdf wrapper for hash_for_each_safe
Add qdf wrapper API for hash_for_each_safe which iterates over a hashtable safe against removal of hash entry Change-Id: I89d8b6520a4bee583d44a771b4359ed287d0c2fa CRs-Fixed: 2528484
This commit is contained in:

کامیت شده توسط
nshrivas

والد
4ad877f928
کامیت
20bc724ca1
@@ -96,6 +96,18 @@
|
||||
#define qdf_ht_for_each(table, i, cursor, entry_field) \
|
||||
__qdf_ht_for_each(table, i, cursor, entry_field)
|
||||
|
||||
/**
|
||||
* qdf_ht_for_each_safe() - iterate all entries in @table safe against removal
|
||||
* of hash entry.
|
||||
* @table: a non-pointer qdf_ht instance to iterate
|
||||
* @i: int type cursor populated with the bucket index
|
||||
* @tmp: a &struct used for temporary storage
|
||||
* @cursor: container struct pointer populated with each iteration
|
||||
* @entry_field: name of the entry field in the entry container struct
|
||||
*/
|
||||
#define qdf_ht_for_each_safe(table, i, tmp, cursor, entry_field) \
|
||||
__qdf_ht_for_each_safe(table, i, tmp, cursor, entry_field)
|
||||
|
||||
/**
|
||||
* qdf_ht_for_each_in_bucket() - iterate entries in the bucket for @key
|
||||
* @table: a non-pointer qdf_ht instance to iterate
|
||||
|
مرجع در شماره جدید
Block a user