MCPcopy Create free account
hub / github.com/coreboot/coreboot / list_append

Function list_append

src/commonlib/include/commonlib/list.h:66–71  ·  view source on GitHub ↗

Append the node to the end of the list.

Source from the content-addressed store, hash-verified

64
65// Append the node to the end of the list.
66static inline void list_append(struct list_node *node, struct list_node *head)
67{
68 _list_init(head);
69 /* With a circular list, we just need to insert before the head. */
70 list_insert_before(node, head);
71}
72
73// Pop the node from the end of the list.
74static inline struct list_node *list_pop(struct list_node *head)

Callers 5

push_threadFunction · 0.85
test_list_append_and_popFunction · 0.85
test_list_moveFunction · 0.85
test_list_move_invalidFunction · 0.85

Calls 2

_list_initFunction · 0.85
list_insert_beforeFunction · 0.85

Tested by 3

test_list_append_and_popFunction · 0.68
test_list_moveFunction · 0.68
test_list_move_invalidFunction · 0.68