6198 Let's EOL cachefs
[illumos-gate.git] / usr / src / uts / common / os / mem_config_stubs.c
blob1a265173f4fe61701329ff1b67d29d74405d7230
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #include <sys/types.h>
27 #include <sys/cmn_err.h>
28 #include <sys/errno.h>
29 #include <sys/debug.h>
30 #include <vm/page.h>
31 #include <sys/mem_config.h>
32 #include <sys/mem_cage.h>
34 /* These should be in a platform stubs file. */
36 int kcage_on;
37 kthread_id_t kcage_cageout_thread;
38 pgcnt_t kcage_freemem;
39 pgcnt_t kcage_throttlefree;
40 pgcnt_t kcage_minfree;
41 pgcnt_t kcage_desfree;
42 pgcnt_t kcage_needfree;
43 pgcnt_t kcage_lotsfree = 1;
45 #if !defined(__x86) || defined(__xpv)
46 /*ARGSUSED*/
47 int
48 kphysm_setup_func_register(kphysm_setup_vector_t *vec, void *arg)
50 return (0);
53 /*ARGSUSED*/
54 void
55 kphysm_setup_func_unregister(kphysm_setup_vector_t *vec, void *arg)
58 #endif
60 /*ARGSUSED*/
61 int
62 kcage_create_throttle(pgcnt_t npages, int flags)
64 return (0);
67 void
68 kcage_cageout_init(void)
72 void
73 kcage_cageout_wakeup()
77 void
78 kcage_tick()
82 /*ARGSUSED*/
83 int
84 kcage_current_pfn(pfn_t *pfn)
86 return (0);