Lines Matching refs:head
619 * stored in the '*head' list and are removed from 'original'.
621 * If '*head' is NULL, then a new list will be allocated using
625 * If '*head' is not NULL, it should point to an empty sglist. If it
627 * be returned. If '*head' is not empty, then EINVAL will be
634 sglist_split(struct sglist *original, struct sglist **head, size_t length,
644 /* Figure out how big of a sglist '*head' has to hold. */
663 /* Nothing to do, so leave head empty. */
667 if (*head == NULL) {
671 *head = sg;
673 sg = *head;