list_cut_before9
Cut a list into two, before given entry
Usage
void list_cut_before(struct list_head * list, struct list_head * head, struct list_head * entry);
Arguments
list
a new list to add all removed entries
head
a list with entries
entry
an entry within head, could be the head itself
Overview
This helper moves the initial part of head, up to but excluding entry, from head to list. You should pass in entry an element you know is on head. list should be an empty list or a list you do not care about losing its data. If entry == head, all entries on head are moved to list.