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

Function list_pop

src/commonlib/include/commonlib/list.h:74–80  ·  view source on GitHub ↗

Pop the node from the end of the list.

Source from the content-addressed store, hash-verified

72
73// Pop the node from the end of the list.
74static inline struct list_node *list_pop(struct list_node *head)
75{
76 struct list_node *last = list_last(head);
77 if (last)
78 list_remove(last);
79 return last;
80}
81
82// Get the number of list elements.
83size_t list_length(const struct list_node *head);

Callers 2

pop_threadFunction · 0.85
test_list_append_and_popFunction · 0.85

Calls 2

list_lastFunction · 0.85
list_removeFunction · 0.85

Tested by 1

test_list_append_and_popFunction · 0.68