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

Function td_list_add_tail

src/list.h:199–202  ·  view source on GitHub ↗

* td_list_add_tail - add a new entry * @newe: new entry to be added * @head: list head to add it before * * Insert a new entry before the specified head. * This is useful for implementing queues. */ @ @ requires \valid(newe); @ requires \valid(head); @ requires \valid(head->prev); @ requires separation: \separated(newe, head); @ requires \separated(newe, \union(head->prev, head));

Source from the content-addressed store, hash-verified

197 @ assigns head->prev,newe->next,newe->prev,\old(head->prev)->next;
198 @*/
199static inline void td_list_add_tail(struct td_list_head *newe, struct td_list_head *head)
200{
201 __td_list_add(newe, head->prev, head);
202}
203
204/*
205 * Delete a list entry by making the prev/next entries

Callers 15

get_dos_drive_listFunction · 0.85
askloc.cFile · 0.85
td_list_add_sorted_sigFunction · 0.85
reiser_dirFunction · 0.85
session_loadFunction · 0.85
td_list_add_sorted_fccFunction · 0.85
file_check_add_tailFunction · 0.85
fat32_find_root_clusterFunction · 0.85
init_search_spaceFunction · 0.85
file_block_add_to_fileFunction · 0.85
file_block_truncate_auxFunction · 0.85

Calls 1

__td_list_addFunction · 0.85

Tested by

no test coverage detected