![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
Go to the source code of this file.
Data Structures | |
struct | tfm_list_node_t |
Macros | |
#define | TFM_LIST_FOR_EACH(node, head) for (node = (head)->next; node != head; node = node->next) |
Functions | |
__STATIC_INLINE void | tfm_list_init (struct tfm_list_node_t *head) |
Initialize list head. More... | |
__STATIC_INLINE void | tfm_list_add_tail (struct tfm_list_node_t *head, struct tfm_list_node_t *node) |
Add one node to list tail. More... | |
__STATIC_INLINE int32_t | tfm_list_is_empty (struct tfm_list_node_t *head) |
Check if a list is empty. More... | |
__STATIC_INLINE void | tfm_list_insert_first (struct tfm_list_node_t *head, struct tfm_list_node_t *node) |
Insert one node to list head. More... | |
__STATIC_INLINE struct tfm_list_node_t * | tfm_list_first_node (struct tfm_list_node_t *head) |
Retrieve the fist node from list. More... | |
__STATIC_INLINE void | tfm_list_del_node (struct tfm_list_node_t *node) |
Delete one node from list. More... | |
#define TFM_LIST_FOR_EACH | ( | node, | |
head | |||
) | for (node = (head)->next; node != head; node = node->next) |
Definition at line 95 of file tfm_list.h.
__STATIC_INLINE void tfm_list_add_tail | ( | struct tfm_list_node_t * | head, |
struct tfm_list_node_t * | node | ||
) |
Add one node to list tail.
[in] | head | List head initialized by tfm_list_init. |
[in] | node | List node want to be added. |
Definition at line 34 of file tfm_list.h.
__STATIC_INLINE void tfm_list_del_node | ( | struct tfm_list_node_t * | node | ) |
Delete one node from list.
[in] | node | List node want to be deleted. |
Definition at line 88 of file tfm_list.h.
__STATIC_INLINE struct tfm_list_node_t* tfm_list_first_node | ( | struct tfm_list_node_t * | head | ) |
Retrieve the fist node from list.
[in] | head | List head initialized by tfm_list_init. |
Definition at line 78 of file tfm_list.h.
__STATIC_INLINE void tfm_list_init | ( | struct tfm_list_node_t * | head | ) |
Initialize list head.
[in] | head | List head need to be initialized. |
Definition at line 21 of file tfm_list.h.
__STATIC_INLINE void tfm_list_insert_first | ( | struct tfm_list_node_t * | head, |
struct tfm_list_node_t * | node | ||
) |
Insert one node to list head.
[in] | head | List head initialized by tfm_list_init. |
[in] | node | List node want to be inserted. |
Definition at line 61 of file tfm_list.h.
__STATIC_INLINE int32_t tfm_list_is_empty | ( | struct tfm_list_node_t * | head | ) |
Check if a list is empty.
[in] | head | List head initialized by tfm_list_init. |
Definition at line 49 of file tfm_list.h.