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