1*8212SMichael.Corcoran@Sun.COM /* 2*8212SMichael.Corcoran@Sun.COM * CDDL HEADER START 3*8212SMichael.Corcoran@Sun.COM * 4*8212SMichael.Corcoran@Sun.COM * The contents of this file are subject to the terms of the 5*8212SMichael.Corcoran@Sun.COM * Common Development and Distribution License (the "License"). 6*8212SMichael.Corcoran@Sun.COM * You may not use this file except in compliance with the License. 7*8212SMichael.Corcoran@Sun.COM * 8*8212SMichael.Corcoran@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*8212SMichael.Corcoran@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*8212SMichael.Corcoran@Sun.COM * See the License for the specific language governing permissions 11*8212SMichael.Corcoran@Sun.COM * and limitations under the License. 12*8212SMichael.Corcoran@Sun.COM * 13*8212SMichael.Corcoran@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*8212SMichael.Corcoran@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*8212SMichael.Corcoran@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*8212SMichael.Corcoran@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*8212SMichael.Corcoran@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*8212SMichael.Corcoran@Sun.COM * 19*8212SMichael.Corcoran@Sun.COM * CDDL HEADER END 20*8212SMichael.Corcoran@Sun.COM */ 21*8212SMichael.Corcoran@Sun.COM /* 22*8212SMichael.Corcoran@Sun.COM * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*8212SMichael.Corcoran@Sun.COM * Use is subject to license terms. 24*8212SMichael.Corcoran@Sun.COM */ 25*8212SMichael.Corcoran@Sun.COM 26*8212SMichael.Corcoran@Sun.COM #ifndef _SYS_MMAPOBJ_H 27*8212SMichael.Corcoran@Sun.COM #define _SYS_MMAPOBJ_H 28*8212SMichael.Corcoran@Sun.COM 29*8212SMichael.Corcoran@Sun.COM #ifdef __cplusplus 30*8212SMichael.Corcoran@Sun.COM extern "C" { 31*8212SMichael.Corcoran@Sun.COM #endif 32*8212SMichael.Corcoran@Sun.COM 33*8212SMichael.Corcoran@Sun.COM /* 34*8212SMichael.Corcoran@Sun.COM * Number of mmapobj_result_t structures created on stack for quick allocation. 35*8212SMichael.Corcoran@Sun.COM * More will be manually kmem_alloc'ed if needed. 36*8212SMichael.Corcoran@Sun.COM * Should be enough for most ELF objects. 37*8212SMichael.Corcoran@Sun.COM */ 38*8212SMichael.Corcoran@Sun.COM #define LIBVA_CACHED_SEGS 3 39*8212SMichael.Corcoran@Sun.COM 40*8212SMichael.Corcoran@Sun.COM #ifdef _KERNEL 41*8212SMichael.Corcoran@Sun.COM extern void mmapobj_unmap(mmapobj_result_t *, int, int, ushort_t); 42*8212SMichael.Corcoran@Sun.COM #endif 43*8212SMichael.Corcoran@Sun.COM 44*8212SMichael.Corcoran@Sun.COM extern int mmapobj(vnode_t *, uint_t, mmapobj_result_t *, uint_t *, size_t, 45*8212SMichael.Corcoran@Sun.COM cred_t *); 46*8212SMichael.Corcoran@Sun.COM 47*8212SMichael.Corcoran@Sun.COM #ifdef __cplusplus 48*8212SMichael.Corcoran@Sun.COM } 49*8212SMichael.Corcoran@Sun.COM #endif 50*8212SMichael.Corcoran@Sun.COM 51*8212SMichael.Corcoran@Sun.COM #endif /* _SYS_MMAPOBJ_H */ 52