MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / __list_add

Function __list_add

lib/list.h:51–59  ·  view source on GitHub ↗

* Insert a new entry between two known consecutive entries. * * This is only for internal list manipulation where we know * the prev/next entries already! */

Source from the content-addressed store, hash-verified

49 * the prev/next entries already!
50 */
51static inline void __list_add(struct list_head *new_entry,
52 struct list_head *prev,
53 struct list_head *next)
54{
55 next->prev = new_entry;
56 new_entry->next = next;
57 new_entry->prev = prev;
58 prev->next = new_entry;
59}
60
61/**
62 * list_add - add a new entry

Callers 2

list_addFunction · 0.85
list_add_tailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected