WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
frw_list.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2021. All rights reserved.
3 * Description: wifi dmac os adapt layer
4 * Create: 2021-08-05
5 */
6
7#ifndef __FRW_LIST_H__
8#define __FRW_LIST_H__
9
10#include "frw_list_rom.h"
11
12/* 从双向链表头部删除一个节点,不判断链表是否为空,不负责释放内存 请注意 */
13static inline struct osal_list_head *osal_dlist_delete_head(const struct osal_list_head *head)
14{
15 struct osal_list_head *node;
16
17 node = head->next;
18 if (node == OSAL_NULL || node == head) {
19 return NULL;
20 }
21
22 osal_dlist_delete_entry(node);
23
24 return node;
25}
26
27/* 从双向链表头部删除一个节点,不判断链表是否为空,不负责释放内存 请注意 */
28static inline struct osal_list_head *osal_dlist_delete_tail(const struct osal_list_head *head)
29{
30 struct osal_list_head *node;
31
32 node = head->prev;
33 if (node == OSAL_NULL || node == head) {
34 return NULL;
35 }
36
37 osal_dlist_delete_entry(node);
38
39 return node;
40}
41
42#endif // endif __FRW_LIST_ROM_H__
43
#define NULL
Definition common_def.h:21
#define OSAL_NULL
Definition osal_types.h:65
Definition osal_list.h:39
struct osal_list_head * next
Definition osal_list.h:40
struct osal_list_head * prev
Definition osal_list.h:40