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.9 (Berkeley) 07/08/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 volatile struct timeval mono_time; 20 extern struct timeval boottime; 21 extern struct timeval runtime; 22 extern volatile struct timeval time; 23 extern struct timezone tz; /* XXX */ 24 25 extern int tick; /* usec per tick (1000000 / hz) */ 26 extern int hz; /* system clock's frequency */ 27 extern int stathz; /* statistics clock's frequency */ 28 extern int profhz; /* profiling clock's frequency */ 29 extern int lbolt; /* once a second sleep address */ 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 int profiling; 42 extern u_short *kcount; 43 #endif 44