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 #include <umem.h> 27*7850SVuong.Nguyen@Sun.COM 28*7850SVuong.Nguyen@Sun.COM void * ldom_alloc(size_t size)29*7850SVuong.Nguyen@Sun.COMldom_alloc(size_t size) 30*7850SVuong.Nguyen@Sun.COM { 31*7850SVuong.Nguyen@Sun.COM return (umem_alloc(size, UMEM_DEFAULT)); 32*7850SVuong.Nguyen@Sun.COM } 33*7850SVuong.Nguyen@Sun.COM 34*7850SVuong.Nguyen@Sun.COM void ldom_free(void * data,size_t size)35*7850SVuong.Nguyen@Sun.COMldom_free(void *data, size_t size) 36*7850SVuong.Nguyen@Sun.COM { 37*7850SVuong.Nguyen@Sun.COM umem_free(data, size); 38*7850SVuong.Nguyen@Sun.COM } 39