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