1 |
1254 |
phoenix |
//==========================================================================
|
2 |
|
|
//
|
3 |
|
|
// include/sys/kernel.h
|
4 |
|
|
//
|
5 |
|
|
//
|
6 |
|
|
//
|
7 |
|
|
//==========================================================================
|
8 |
|
|
//####BSDCOPYRIGHTBEGIN####
|
9 |
|
|
//
|
10 |
|
|
// -------------------------------------------
|
11 |
|
|
//
|
12 |
|
|
// Portions of this software may have been derived from OpenBSD or other sources,
|
13 |
|
|
// and are covered by the appropriate copyright disclaimers included herein.
|
14 |
|
|
//
|
15 |
|
|
// -------------------------------------------
|
16 |
|
|
//
|
17 |
|
|
//####BSDCOPYRIGHTEND####
|
18 |
|
|
//==========================================================================
|
19 |
|
|
//#####DESCRIPTIONBEGIN####
|
20 |
|
|
//
|
21 |
|
|
// Author(s): gthomas
|
22 |
|
|
// Contributors: gthomas
|
23 |
|
|
// Date: 2000-01-10
|
24 |
|
|
// Purpose:
|
25 |
|
|
// Description:
|
26 |
|
|
//
|
27 |
|
|
//
|
28 |
|
|
//####DESCRIPTIONEND####
|
29 |
|
|
//
|
30 |
|
|
//==========================================================================
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
/* $OpenBSD: kernel.h,v 1.5 1996/08/11 20:39:07 niklas Exp $ */
|
34 |
|
|
/* $NetBSD: kernel.h,v 1.11 1995/03/03 01:24:16 cgd Exp $ */
|
35 |
|
|
|
36 |
|
|
/*-
|
37 |
|
|
* Copyright (c) 1990, 1993
|
38 |
|
|
* The Regents of the University of California. All rights reserved.
|
39 |
|
|
* (c) UNIX System Laboratories, Inc.
|
40 |
|
|
* All or some portions of this file are derived from material licensed
|
41 |
|
|
* to the University of California by American Telephone and Telegraph
|
42 |
|
|
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
43 |
|
|
* the permission of UNIX System Laboratories, Inc.
|
44 |
|
|
*
|
45 |
|
|
* Redistribution and use in source and binary forms, with or without
|
46 |
|
|
* modification, are permitted provided that the following conditions
|
47 |
|
|
* are met:
|
48 |
|
|
* 1. Redistributions of source code must retain the above copyright
|
49 |
|
|
* notice, this list of conditions and the following disclaimer.
|
50 |
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
51 |
|
|
* notice, this list of conditions and the following disclaimer in the
|
52 |
|
|
* documentation and/or other materials provided with the distribution.
|
53 |
|
|
* 3. All advertising materials mentioning features or use of this software
|
54 |
|
|
* must display the following acknowledgement:
|
55 |
|
|
* This product includes software developed by the University of
|
56 |
|
|
* California, Berkeley and its contributors.
|
57 |
|
|
* 4. Neither the name of the University nor the names of its contributors
|
58 |
|
|
* may be used to endorse or promote products derived from this software
|
59 |
|
|
* without specific prior written permission.
|
60 |
|
|
*
|
61 |
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
62 |
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
63 |
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
64 |
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
65 |
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
66 |
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
67 |
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
68 |
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
69 |
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
70 |
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
71 |
|
|
* SUCH DAMAGE.
|
72 |
|
|
*
|
73 |
|
|
* @(#)kernel.h 8.3 (Berkeley) 1/21/94
|
74 |
|
|
*/
|
75 |
|
|
|
76 |
|
|
/* Global variables for the kernel. */
|
77 |
|
|
|
78 |
|
|
/* 1.1 */
|
79 |
|
|
extern long hostid;
|
80 |
|
|
extern char hostname[MAXHOSTNAMELEN];
|
81 |
|
|
extern int hostnamelen;
|
82 |
|
|
extern char domainname[MAXHOSTNAMELEN];
|
83 |
|
|
extern int domainnamelen;
|
84 |
|
|
|
85 |
|
|
/* 1.2 */
|
86 |
|
|
extern volatile struct timeval mono_time;
|
87 |
|
|
extern struct timeval boottime;
|
88 |
|
|
extern struct timeval runtime;
|
89 |
|
|
extern volatile struct timeval ktime;
|
90 |
|
|
#define time ktime
|
91 |
|
|
extern struct timezone tz; /* XXX */
|
92 |
|
|
|
93 |
|
|
extern int tick; /* usec per tick (1000000 / hz) */
|
94 |
|
|
extern int tickfix; /* periodic tick adj. tick not integral */
|
95 |
|
|
extern int tickfixinterval; /* interval at which to apply adjustment */
|
96 |
|
|
extern int tickadj; /* "standard" clock skew, us./tick */
|
97 |
|
|
extern int hz; /* system clock's frequency */
|
98 |
|
|
extern int stathz; /* statistics clock's frequency */
|
99 |
|
|
extern int profhz; /* profiling clock's frequency */
|
100 |
|
|
extern int lbolt; /* once a second sleep address */
|
101 |
|
|
extern int tickdelta;
|
102 |
|
|
extern long timedelta;
|
103 |
|
|
|
104 |
|
|
|