xref: /original-bsd/sys/sys/kernel.h (revision 3588a932)
1 /*-
2  * Copyright (c) 1990 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)kernel.h	7.4 (Berkeley) 02/15/91
8  */
9 
10 /* Global variables for the kernel. */
11 long rmalloc();
12 
13 /* 1.1 */
14 long hostid;
15 char hostname[MAXHOSTNAMELEN];
16 int hostnamelen;
17 
18 /* 1.2 */
19 struct timeval boottime;
20 struct timeval time;
21 struct timezone tz;			/* XXX */
22 
23 int hz;					/* clock frequency */
24 int phz;				/* alternate clock's frequency */
25 int tick;
26 int lbolt;				/* once a second sleep address */
27 int realitexpire();
28 
29 fixpt_t	averunnable[3];
30 #if defined(COMPAT_43) && (defined(vax) || defined(tahoe))
31 double	avenrun[3];
32 #endif /* COMPAT_43 */
33 
34 #ifdef GPROF
35 u_long s_textsize;
36 int profiling;
37 u_short *kcount;
38 char *s_lowpc;
39 #endif
40