/*!
* @brief list_add_tail - add a new entry
*
* @details Insert a new entry before the specified head.
* This is useful for implementing queues.
*
* @param new_h: new entry to be added
* @param head: list head to add it before
*/staticinlinevoidlist_add_tail(structlist_head*new_h,structlist_head*head){__list_add(new_h, head->prev, head);}/*!
* @brief Insert a new entry between two known consecutive entries.
*
* @details This is only for internal list manipulation where we know
* the prev/next entries already!
*/staticinlinevoid__list_add(structlist_head*new_h,structlist_head*prev,structlist_head*next){
next->prev = new_h;
new_h->next = next;
new_h->prev = prev;
prev->next = new_h;}