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 /* 23 * Copyright 1997 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 28 /* All Rights Reserved */ 29 30 #ifndef _SYS_VAR_H 31 #define _SYS_VAR_H 32 33 #pragma ident "%Z%%M% %I% %E% SMI" 34 35 #ifdef __cplusplus 36 extern "C" { 37 #endif 38 39 /* 40 * System Configuration Information 41 */ 42 struct var { 43 int v_buf; /* Nbr of I/O buffers. */ 44 int v_call; /* Nbr of callout (timeout) entries. */ 45 int v_proc; /* Max processes system wide */ 46 int v_maxupttl; /* Max user processes system wide */ 47 int v_nglobpris; /* Nbr of global sched prios configured */ 48 int v_maxsyspri; /* Max global pri used by sys class. */ 49 int v_clist; /* Nbr of clists allocated. */ 50 int v_maxup; /* Max number of processes per user. */ 51 int v_hbuf; /* Nbr of hash buffers to allocate. */ 52 int v_hmask; /* Hash mask for buffers. */ 53 int v_pbuf; /* Nbr of physical I/O buffers. */ 54 int v_sptmap; /* Size of system virtual space */ 55 /* allocation map. */ 56 int v_maxpmem; /* The maximum physical memory to use. */ 57 /* If v_maxpmem == 0, then use all */ 58 /* available physical memory. */ 59 /* Otherwise, value is amount of mem to */ 60 /* use specified in pages. */ 61 int v_autoup; /* The age a delayed-write buffer must */ 62 /* be in seconds before bdflush will */ 63 /* write it out. */ 64 int v_bufhwm; /* high-water-mark of buffer cache */ 65 /* memory usage, in units of K Bytes */ 66 }; 67 68 extern struct var v; 69 70 #ifdef __cplusplus 71 } 72 #endif 73 74 #endif /* _SYS_VAR_H */ 75