Intrusive linked list. More...
Intrusive linked list.
Lists are represented as element pointing to the first actual list element.
Definition in file list.h.
Go to the source code of this file.
Data Structures | |
struct | list_node |
List node structure. More... | |
typedef struct list_node | list_node_t |
List node structure. More... | |
static void | list_add (list_node_t *node, list_node_t *new_node) |
Insert object into list. More... | |
static list_node_t * | list_remove_head (list_node_t *list) |
Removes the head of the list and returns it. More... | |
static list_node_t * | list_remove (list_node_t *list, list_node_t *node) |
Removes the node from the list. More... | |
typedef struct list_node list_node_t |
List node structure.
Used as is as reference to a list, or as member of any data structure that should be member of a list.
Actual list objects should have a list_node_t
as member and then use the container_of() macro in list operations. See thread_add_to_list() as example.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |