On Tue, 2010-11-16 at 08:53 +0800, Huang Ying wrote: > +/** > + * llist_del_all - delete all entries from lock-less list > + * @head: the head of lock-less list to delete all entries > + * > + * If list is empty, return NULL, otherwise, delete all entries and > + * return the pointer to the first entry. > + */ > +struct llist_node *llist_del_all(struct llist_head *head) > +{ > + return xchg(&head->first, NULL); > +} > +EXPORT_SYMBOL_GPL(llist_del_all); Its not del_all, since it returns the actual list. move or splice might be better names. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html