/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Yet another list implementation
* This is a multipurpose double-linked list. It requires that the first
* two structure members of each item are the 'next' and 'prev' pointers.
* This works for mblk's and other data types utilized by av1394.
*
* Locking is provided by the caller.
*/
/*
* av1394_list_init()
* Initializes the list
*/
void
{
}
/*
* av1394_list_head()
* Returns pointer to the first item in the list (but does not remove it)
*/
void *
{
}
/*
* av1394_list_put_tail()
* Adds item to the end of the list
*/
void
{
} else {
}
}
/*
* av1394_list_put_head()
* Inserts item in the front of the list
*/
void
{
} else {
}
}
/*
* av1394_list_get_head()
* Removes and returns an item from the front of the list
*/
void *
{
} else {
}
}
return (item);
}