5.0/list.h
/**
 * list_concat - concatenate the entries from a list to another list.
 * @src: the source list; the entries in the source list will be deleted.
 * @dest: the destination list.
 */
concatenate the entries from a list to another list.
@src: the source list; the entries in the source list will be deleted.
@dest: the destination list.
concatenate the entries from a list to another list . @src : the source list ; the entries in the source list will be deleted . @dest : the destination list .
static inline void list_concat(struct list_head* dest, struct list_head* src)
{
    while (!list_empty(src)) {
        struct list_head* entry = src->next;
        list_del(src->next);
        list_add_tail(entry, dest);
    }
}
static inline void list_concat ( struct list_head * dest , struct list_head * src ) { while ( ! list_empty ( src ) ) { struct list_head * entry = src -> next ; list_del ( src -> next ) ; list_add_tail ( entry , dest ) ; } }
list_concat - concatenate the entries from a list to another list.
list_concat - concatenate the entries from a list to another list .