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

Function list_prev

src/commonlib/include/commonlib/list.h:39–43  ·  view source on GitHub ↗

Get prev node.

Source from the content-addressed store, hash-verified

37
38// Get prev node.
39static inline struct list_node *list_prev(const struct list_node *node,
40 const struct list_node *head)
41{
42 return PREV(node) == head ? NULL : PREV(node);
43};
44
45// Get first node.
46static inline struct list_node *list_first(const struct list_node *head)

Callers 3

list_lastFunction · 0.85
test_list_one_nodeFunction · 0.85
test_list_insert_afterFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_list_one_nodeFunction · 0.68
test_list_insert_afterFunction · 0.68