MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / td_list_add

Function td_list_add

src/list.h:168–171  ·  view source on GitHub ↗

* td_list_add - add a new entry * @newe: new entry to be added * @head: list head to add it after * * Insert a new entry after the specified head. * This is good for implementing stacks. */ @ @ requires \valid(newe); @ requires \valid(head); @ requires \valid(head->next); @ requires separation: \separated(newe, \union(head,head->next)); @ requires finite(head); @ requires finite(

Source from the content-addressed store, hash-verified

166 @ assigns head->next,newe->prev,newe->next,\old(head->next)->prev;
167 @*/
168static inline void td_list_add(struct td_list_head *newe, struct td_list_head *head)
169{
170 __td_list_add(newe, head, head->next);
171}
172
173/**
174 * td_list_add_tail - add a new entry

Callers 7

file_add_dataFunction · 0.85
update_search_space_auxFunction · 0.85
file_block_truncate_auxFunction · 0.85
file_foundFunction · 0.85
td_list_moveFunction · 0.85

Calls 1

__td_list_addFunction · 0.85

Tested by

no test coverage detected