Lines Matching refs:node
50 * Structure of a node in a doubly linked list.
53 struct LOS_DL_LIST *pstPrev; /**< Current node's pointer to the previous node */
54 struct LOS_DL_LIST *pstNext; /**< Current node's pointer to the next node */
83 * @brief Point to the next node pointed to by the current node.
87 * <li>This API is used to point to the next node pointed to by the current node.</li>
105 * @brief Insert a new node to a doubly linked list.
108 * This API is used to insert a new node to a doubly linked list.
114 * @param list [IN] Doubly linked list where the new node is inserted.
115 * @param node [IN] New node to be inserted.
122 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListAdd(LOS_DL_LIST *list, LOS_DL_LIST *node)
124 node->pstNext = list->pstNext;
125 node->pstPrev = list;
126 list->pstNext->pstPrev = node;
127 list->pstNext = node;
132 * @brief Insert a node to the tail of a doubly linked list.
135 * This API is used to insert a new node to the tail of a doubly linked list.
141 * @param list [IN] Doubly linked list where the new node is inserted.
142 * @param node [IN] New node to be inserted.
149 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListTailInsert(LOS_DL_LIST *list, LOS_DL_LIST *node)
151 LOS_ListAdd(list->pstPrev, node);
156 * @brief Insert a node to the head of a doubly linked list.
159 * This API is used to insert a new node to the head of a doubly linked list.
165 * @param list [IN] Doubly linked list where the new node is inserted.
166 * @param node [IN] New node to be inserted.
173 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListHeadInsert(LOS_DL_LIST *list, LOS_DL_LIST *node)
175 LOS_ListAdd(list, node);
180 * @brief Delete a specified node from a doubly linked list.
184 * <li>This API is used to delete a specified node from a doubly linked list.</li>
191 * @param node [IN] Node to be deleted.
198 LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListDelete(LOS_DL_LIST *node)
200 node->pstNext->pstPrev = node->pstPrev;
201 node->pstPrev->pstNext = node->pstNext;
202 node->pstNext = (LOS_DL_LIST *)NULL;
203 node->pstPrev = (LOS_DL_LIST *)NULL;
219 * @param list [IN] Doubly linked node.
227 LITE_OS_SEC_ALW_INLINE STATIC_INLINE BOOL LOS_ListEmpty(LOS_DL_LIST *node)
229 return (BOOL)(node->pstNext == node);
267 * @param item [IN] Current node's pointer to the next node.
317 * @param next [IN] Save the next node.
392 * @param next [IN] Save the next node.