xref: /titanic_50/usr/src/lib/fm/libldom/sparc/ldom_alloc.h (revision 25351652d920ae27c5a56c199da581033ce763f6)
1*25351652SVuong Nguyen /*
2*25351652SVuong Nguyen  * CDDL HEADER START
3*25351652SVuong Nguyen  *
4*25351652SVuong Nguyen  * The contents of this file are subject to the terms of the
5*25351652SVuong Nguyen  * Common Development and Distribution License (the "License").
6*25351652SVuong Nguyen  * You may not use this file except in compliance with the License.
7*25351652SVuong Nguyen  *
8*25351652SVuong Nguyen  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*25351652SVuong Nguyen  * or http://www.opensolaris.org/os/licensing.
10*25351652SVuong Nguyen  * See the License for the specific language governing permissions
11*25351652SVuong Nguyen  * and limitations under the License.
12*25351652SVuong Nguyen  *
13*25351652SVuong Nguyen  * When distributing Covered Code, include this CDDL HEADER in each
14*25351652SVuong Nguyen  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*25351652SVuong Nguyen  * If applicable, add the following below this CDDL HEADER, with the
16*25351652SVuong Nguyen  * fields enclosed by brackets "[]" replaced with your own identifying
17*25351652SVuong Nguyen  * information: Portions Copyright [yyyy] [name of copyright owner]
18*25351652SVuong Nguyen  *
19*25351652SVuong Nguyen  * CDDL HEADER END
20*25351652SVuong Nguyen  */
21*25351652SVuong Nguyen /*
22*25351652SVuong Nguyen  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*25351652SVuong Nguyen  * Use is subject to license terms.
24*25351652SVuong Nguyen  */
25*25351652SVuong Nguyen 
26*25351652SVuong Nguyen #ifndef	_LDOM_ALLOC_H
27*25351652SVuong Nguyen #define	_LDOM_ALLOC_H
28*25351652SVuong Nguyen 
29*25351652SVuong Nguyen #include <sys/types.h>
30*25351652SVuong Nguyen #include <umem.h>
31*25351652SVuong Nguyen 
32*25351652SVuong Nguyen #ifdef	__cplusplus
33*25351652SVuong Nguyen extern "C" {
34*25351652SVuong Nguyen #endif
35*25351652SVuong Nguyen 
36*25351652SVuong Nguyen extern void *ldom_alloc(size_t size);
37*25351652SVuong Nguyen extern void ldom_free(void *data, size_t size);
38*25351652SVuong Nguyen 
39*25351652SVuong Nguyen #ifdef	__cplusplus
40*25351652SVuong Nguyen }
41*25351652SVuong Nguyen #endif
42*25351652SVuong Nguyen 
43*25351652SVuong Nguyen #endif	/* _LDOM_ALLOC_H */
44