xref: /titanic_52/usr/src/uts/common/sys/tuneable.h (revision c2580b931007758eab8cb5ae8726ebe1588e259b)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ifndef _SYS_TUNEABLE_H
27 #define	_SYS_TUNEABLE_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 11.7 */
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 typedef struct tune {
36 	int	t_gpgslo;	/* If freemem < t_getpgslow, then start	*/
37 				/* to steal pages from processes.	*/
38 	int	t_pad[7];	/* Padding for driver compatibility.    */
39 	int	t_fsflushr;	/* The rate at which fsflush is run in	*/
40 				/* seconds.				*/
41 	int	t_minarmem;	/* The minimum available resident (not	*/
42 				/* swappable) memory to maintain in 	*/
43 				/* order to avoid deadlock.  In pages.	*/
44 	int	t_minasmem;	/* The minimum available swappable	*/
45 				/* memory to maintain in order to avoid	*/
46 				/* deadlock.  In pages.			*/
47 	int	t_flckrec;	/* max number of active frlocks */
48 } tune_t;
49 
50 extern tune_t	tune;
51 
52 /*
53  * The following is the default value for t_gpgsmsk.  It cannot be
54  * defined in /etc/master or /stand/system due to limitations of the
55  * config program.
56  */
57 
58 #define	GETPGSMSK	PG_REF|PG_NDREF
59 
60 #ifdef	__cplusplus
61 }
62 #endif
63 
64 #endif	/* _SYS_TUNEABLE_H */
65