Category
|
API
|
Description
|
Initializing a linked list
|
LOS_ListInit
|
Initializes a specified doubly linked list node as a doubly linked list.
|
LOS_DL_LIST_HEAD
|
Defines a doubly linked list node and initializes the node as a doubly linked list.
|
Adding a node
|
LOS_ListAdd
|
Inserts the specified node to the head of a doubly linked list.
|
LOS_ListTailInsert
|
Inserts the specified node to the end of a doubly linked list.
|
Deleting a node
|
LOS_ListDelete
|
Deletes the specified node from a doubly linked list.
|
LOS_ListDelInit
|
Deletes the specified node from the linked list and uses the node to initialize the linked list.
|
Checking whether a doubly linked list is empty
|
LOS_ListEmpty
|
Checks whether a linked list is empty.
|
Obtaining structure information
|
LOS_DL_LIST_ENTRY
|
Obtains the address of the structure that contains the linked list. The first input parameter of the API indicates a node in the list, the second input parameter indicates the name of the structure to be obtained, and the third input parameter indicates the name of the linked list in the structure.
|
LOS_OFF_SET_OF
|
Obtains the offset of a member in a specified structure relative to the start address of the structure.
|
Traversing a doubly linked list
|
LOS_DL_LIST_FOR_EACH
|
Traverses a doubly linked list.
|
LOS_DL_LIST_FOR_EACH_SAFE
|
Traverses a doubly linked list, and stores the next node of the current node for security verification.
|
Traversing the structure that contains the doubly linked list
|
LOS_DL_LIST_FOR_EACH_ENTRY
|
Traverses the specified doubly linked list and obtains the address of the structure that contains the linked list node.
|
LOS_DL_LIST_FOR_EACH_ENTRY_SAFE
|
Traverses the specified doubly linked list, obtains the structure address of the node that contains the linked list, and stores the structure address that contains the next node of the current node.
|