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
此提交包含在:
Edayilliam Jayadev
2021-09-04 13:19:08 +05:30
提交者 Madan Koyyalamudi
父節點 76ba042a40
當前提交 698478886e
共有 2 個檔案被更改,包括 6 行新增0 行删除

查看文件

@@ -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