tool/base_tool/list.h
/**
 * list_del_init - deletes entry from list and reinitialize it.
 * @entry: the element to delete from the list.
 */
deletes entry from list and reinitialize it.
@entry: the element to delete from the list.
deletes entry from list and reinitialize it . @entry : the element to delete from the list .
static inline void list_del_init(struct list_head *entry)
{
    __list_del(entry->prev, entry->next);
    INIT_LIST_HEAD(entry);
}
static inline void list_del_init ( struct list_head * entry ) { __list_del ( entry -> prev , entry -> next ) ; INIT_LIST_HEAD ( entry ) ; }
list_del_init - deletes entry from list and reinitialize it.
list_del_init - deletes entry from list and reinitialize it .