MCPcopy Create free account
hub / github.com/ElementsProject/lightning / list_node_init

Function list_node_init

ccan/ccan/list/list.h:155–158  ·  view source on GitHub ↗

* list_node_init - initialize a list_node * @n: the list_node to link to itself. * * You don't need to use this normally! But it lets you list_del(@n) * safely. */

Source from the content-addressed store, hash-verified

153 * safely.
154 */
155static inline void list_node_init(struct list_node *n)
156{
157 n->next = n->prev = n;
158}
159
160/**
161 * list_add_after - add an entry after an existing node in a linked list

Callers 4

list_del_init_Function · 0.85
mainFunction · 0.85
timer_initFunction · 0.85
timers_expireFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68