1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * CDDL HEADER START
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * The contents of this file are subject to the terms of the
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * Common Development and Distribution License (the "License").
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * You may not use this file except in compliance with the License.
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * or http://www.opensolaris.org/os/licensing.
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * See the License for the specific language governing permissions
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * and limitations under the License.
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * When distributing Covered Code, include this CDDL HEADER in each
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * If applicable, add the following below this CDDL HEADER, with the
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * fields enclosed by brackets "[]" replaced with your own identifying
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * information: Portions Copyright [yyyy] [name of copyright owner]
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * CDDL HEADER END
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport * Use is subject to license terms.
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport#define gmem_list_prev(elem) ((void *)(((gmem_list_t *)(elem))->l_prev))
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport#define gmem_list_next(elem) ((void *)(((gmem_list_t *)(elem))->l_next))
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void gmem_list_append(gmem_list_t *, void *);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void gmem_list_prepend(gmem_list_t *, void *);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void gmem_list_insert_before(gmem_list_t *, void *, void *);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void gmem_list_insert_after(gmem_list_t *, void *, void *);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void gmem_list_delete(gmem_list_t *, void *);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void *gmem_buf_read(fmd_hdl_t *, fmd_case_t *, const char *, size_t);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void gmem_bufname(char *, size_t, const char *, ...);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenportextern void gmem_vbufname(char *, size_t, const char *, va_list);
1529f529004c61fcfd0d95ab79b0f257d6ad4451Scott Davenport#endif /* _GMEM_UTIL_H */