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

Function td_list_move

src/list.h:274–278  ·  view source on GitHub ↗

* td_list_move - delete from one list and add as another's head * @list: the entry to move * @head: the head that will precede our entry */

Source from the content-addressed store, hash-verified

272 * @head: the head that will precede our entry
273 */
274static inline void td_list_move(struct td_list_head *list, struct td_list_head *head)
275{
276 __td_list_del(list->prev, list->next);
277 td_list_add(list, head);
278}
279
280/**
281 * td_list_move_tail - delete from one list and add as another's tail

Callers

nothing calls this directly

Calls 2

__td_list_delFunction · 0.85
td_list_addFunction · 0.85

Tested by

no test coverage detected