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.7 (Berkeley) 03/09/92 8 */ 9 10 /* Global variables for the kernel. */ 11 long rmalloc(); 12 13 /* 1.1 */ 14 extern long hostid; 15 extern char hostname[MAXHOSTNAMELEN]; 16 extern int hostnamelen; 17 18 /* 1.2 */ 19 extern struct timeval mono_time; 20 extern struct timeval boottime; 21 extern struct timeval time; 22 extern struct timezone tz; /* XXX */ 23 24 extern int hz; /* clock frequency */ 25 extern int phz; /* alternate clock's frequency */ 26 extern int tick; /* usec per tick */ 27 extern int profhz; /* profiling clock's frequency */ 28 extern int lbolt; /* once a second sleep address */ 29 extern int realitexpire(); 30 31 struct loadavg { 32 fixpt_t ldavg[3]; 33 long fscale; 34 }; 35 extern struct loadavg averunnable; 36 #if defined(COMPAT_43) && (defined(vax) || defined(tahoe)) 37 double avenrun[3]; 38 #endif /* COMPAT_43 */ 39 40 #ifdef GPROF 41 extern u_long s_textsize; 42 extern int profiling; 43 extern u_short *kcount; 44 extern char *s_lowpc; 45 #endif 46