1*8329232eSGordon Ross /*
2*8329232eSGordon Ross  * CDDL HEADER START
3*8329232eSGordon Ross  *
4*8329232eSGordon Ross  * The contents of this file are subject to the terms of the
5*8329232eSGordon Ross  * Common Development and Distribution License (the "License").
6*8329232eSGordon Ross  * You may not use this file except in compliance with the License.
7*8329232eSGordon Ross  *
8*8329232eSGordon Ross  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*8329232eSGordon Ross  * or http://www.opensolaris.org/os/licensing.
10*8329232eSGordon Ross  * See the License for the specific language governing permissions
11*8329232eSGordon Ross  * and limitations under the License.
12*8329232eSGordon Ross  *
13*8329232eSGordon Ross  * When distributing Covered Code, include this CDDL HEADER in each
14*8329232eSGordon Ross  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*8329232eSGordon Ross  * If applicable, add the following below this CDDL HEADER, with the
16*8329232eSGordon Ross  * fields enclosed by brackets "[]" replaced with your own identifying
17*8329232eSGordon Ross  * information: Portions Copyright [yyyy] [name of copyright owner]
18*8329232eSGordon Ross  *
19*8329232eSGordon Ross  * CDDL HEADER END
20*8329232eSGordon Ross  */
21*8329232eSGordon Ross /*
22*8329232eSGordon Ross  * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
23*8329232eSGordon Ross  * Copyright (c) 2012, 2017 by Delphix. All rights reserved.
24*8329232eSGordon Ross  * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
25*8329232eSGordon Ross  */
26*8329232eSGordon Ross 
27*8329232eSGordon Ross #include <sys/types.h>
28*8329232eSGordon Ross #include <sys/cmn_err.h>
29*8329232eSGordon Ross #include <sys/cred.h>
30*8329232eSGordon Ross #include <sys/kmem.h>
31*8329232eSGordon Ross #include <sys/systm.h>
32*8329232eSGordon Ross 
33*8329232eSGordon Ross static size_t availmem = (1<<24);
34*8329232eSGordon Ross 
35*8329232eSGordon Ross size_t
kmem_avail(void)36*8329232eSGordon Ross kmem_avail(void)
37*8329232eSGordon Ross {
38*8329232eSGordon Ross 	return (availmem);
39*8329232eSGordon Ross }
40*8329232eSGordon Ross 
41*8329232eSGordon Ross size_t
kmem_maxavail(void)42*8329232eSGordon Ross kmem_maxavail(void)
43*8329232eSGordon Ross {
44*8329232eSGordon Ross 	return (availmem);
45*8329232eSGordon Ross }
46