xge-list.h revision 8347601bcb0a439f6e50fc36b4039a73d08700e1
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Copyright (c) 2002-2006 Neterion, Inc.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * struct xge_list_t - List item.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * @prev: Previous list item.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * @next: Next list item.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Item of a bi-directional linked list.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwtypedef struct xge_list_t {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * xge_list_init - Initialize linked list.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * header: first element of the list (head)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Initialize linked list.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * See also: xge_list_t{}.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * xge_list_is_empty - Is the list empty?
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * header: first element of the list (head)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Determine whether the bi-directional list is empty. Return '1' in
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * case of 'empty'.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * See also: xge_list_t{}.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * xge_list_first_get - Return the first item from the linked list.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * header: first element of the list (head)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Returns the next item from the header.
return NULL;
#ifdef XGE_DEBUG_ASSERT
#ifdef __GNUC__