qcacmn: Add API to get first node of a list
Add QDF API to get the first node of a linked list. If the list is empty this API returns NULL. Change-Id: I4569941f708634085904fd30a347facca543594a CRs-Fixed: 3029987
此提交包含在:
@@ -107,6 +107,9 @@ static inline void qdf_list_create(__qdf_list_t *list, uint32_t max_size)
|
||||
#define qdf_list_for_each_from(list_ptr, cursor, node_field) \
|
||||
__qdf_list_for_each_from(list_ptr, cursor, node_field)
|
||||
|
||||
#define qdf_list_first_entry_or_null(list_ptr, type, node_field) \
|
||||
__qdf_list_first_entry_or_null(list_ptr, type, node_field)
|
||||
|
||||
/**
|
||||
* qdf_init_list_head() - initialize list head
|
||||
* @list_head: pointer to list head
|
||||
|
新增問題並參考
封鎖使用者