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

Function list_last

src/commonlib/include/commonlib/list.h:52–55  ·  view source on GitHub ↗

Get last node.

Source from the content-addressed store, hash-verified

50
51// Get last node.
52static inline struct list_node *list_last(const struct list_node *head)
53{
54 return list_prev(head, head);
55}
56
57// Remove list_node node from the doubly linked list it's a part of.
58void list_remove(struct list_node *node);

Callers 4

list_popFunction · 0.85
test_list_emptyFunction · 0.85
test_list_one_nodeFunction · 0.85
test_list_insert_afterFunction · 0.85

Calls 1

list_prevFunction · 0.85

Tested by 3

test_list_emptyFunction · 0.68
test_list_one_nodeFunction · 0.68
test_list_insert_afterFunction · 0.68