![]() |
AKOS
v1.0.0
Documentation
|
Doubly-linked list types and APIs for scheduler internals. More...
Go to the source code of this file.
Classes | |
| struct | list_item_t |
| Doubly-linked list node used by scheduler/timer lists. More... | |
| struct | list_t |
| Doubly-linked list metadata with end sentinel. More... | |
Macros | |
| #define | list_item_set_owner(p_list_item, p_owner) |
| #define | list_item_get_owner(p_list_item) |
| #define | list_item_set_value(p_list_item, val) |
| #define | list_item_get_value(p_list_item) |
| #define | list_item_get_list_contain(p_list_item) |
| #define | list_get_head_item_value(p_list) |
| #define | list_get_head_item(p_list) |
| #define | list_get_owner_of_head_item(p_list) |
| #define | list_get_end_item(p_list) |
| #define | list_get_num_item(p_list) |
| #define | list_is_empty(p_list) |
Functions | |
| void * | akos_list_get_owner_of_next_item (list_t *const p_list) |
| Get owner of next item and advance list cursor. | |
| void | akos_list_init (list_t *const p_list) |
| Initialize list metadata and sentinel. | |
| void | akos_list_item_init (list_item_t *const p_list_item) |
| Initialize list item linkage and ownership metadata. | |
| list_item_t * | akos_list_item_get_next (list_item_t *p_list_item) |
| Get next list item. | |
| list_item_t * | akos_list_item_get_prev (list_item_t *p_list_item) |
| Get previous list item. | |
| void | akos_list_insert_end (list_t *const p_list, list_item_t *const p_list_item) |
| Insert item at list tail. | |
| void | akos_list_insert (list_t *const p_list, list_item_t *const p_list_item) |
| Insert item in ascending order by list_item::value. | |
| uint16_t | akos_list_remove (list_item_t *const p_list_item) |
| Remove item from containing list. | |
Doubly-linked list types and APIs for scheduler internals.
Definition in file list.h.
| #define list_get_end_item | ( | p_list | ) |
| #define list_get_head_item | ( | p_list | ) |
| #define list_get_head_item_value | ( | p_list | ) |
| #define list_get_num_item | ( | p_list | ) |
| #define list_get_owner_of_head_item | ( | p_list | ) |
| #define list_is_empty | ( | p_list | ) |
| #define list_item_get_list_contain | ( | p_list_item | ) |
| #define list_item_get_owner | ( | p_list_item | ) |
| #define list_item_get_value | ( | p_list_item | ) |
| #define list_item_set_owner | ( | p_list_item, | |
| p_owner ) |
| #define list_item_set_value | ( | p_list_item, | |
| val ) |
| void * akos_list_get_owner_of_next_item | ( | list_t *const | p_list | ) |
| void akos_list_init | ( | list_t *const | p_list | ) |
| void akos_list_insert | ( | list_t *const | p_list, |
| list_item_t *const | p_list_item ) |
Insert item in ascending order by list_item::value.
| p_list | List pointer. |
| p_list_item | Item pointer. |
Insert item in ascending order by list_item::value.
| p_list | Destination list. |
| p_list_item | Item to insert. |
| void akos_list_insert_end | ( | list_t *const | p_list, |
| list_item_t *const | p_list_item ) |
| list_item_t * akos_list_item_get_next | ( | list_item_t * | p_list_item | ) |
| list_item_t * akos_list_item_get_prev | ( | list_item_t * | p_list_item | ) |
| void akos_list_item_init | ( | list_item_t *const | p_list_item | ) |
| uint16_t akos_list_remove | ( | list_item_t *const | p_list_item | ) |