TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_list.h File Reference
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

#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.

Function Documentation

__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.

Parameters
[in]headList head initialized by tfm_list_init.
[in]nodeList node want to be added.

Definition at line 34 of file tfm_list.h.

Here is the caller graph for this function:

__STATIC_INLINE void tfm_list_del_node ( struct tfm_list_node_t node)

Delete one node from list.

Parameters
[in]nodeList node want to be deleted.

Definition at line 88 of file tfm_list.h.

Here is the caller graph for this function:

__STATIC_INLINE struct tfm_list_node_t* tfm_list_first_node ( struct tfm_list_node_t head)

Retrieve the fist node from list.

Parameters
[in]headList head initialized by tfm_list_init.
Returns
Returns the pointer to first list node.

Definition at line 78 of file tfm_list.h.

Here is the caller graph for this function:

__STATIC_INLINE void tfm_list_init ( struct tfm_list_node_t head)

Initialize list head.

Parameters
[in]headList head need to be initialized.

Definition at line 21 of file tfm_list.h.

Here is the caller graph for this function:

__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.

Parameters
[in]headList head initialized by tfm_list_init.
[in]nodeList 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.

Parameters
[in]headList head initialized by tfm_list_init.
Returns
returns 1 for empty, or 0 for not.

Definition at line 49 of file tfm_list.h.

Here is the caller graph for this function: