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