|
|
1.1 root 1: /* (-lgl
2: * COHERENT Version 4.0
3: * Copyright (c) 1982, 1992 by Mark Williams Company.
4: * All rights reserved. May not be copied without permission.
5: -lgl) */
6: /*
7: * Timeout queue header.
8: */
9: #ifndef __SYS_TIMEOUT_H__
10: #define __SYS_TIMEOUT_H__
11:
12: #include <common/feature.h>
13: #include <sys/types.h>
14: #if _I386
15: #include <sys/reg.h>
16: #else
17: #include <sys/machine.h>
18: #endif
19:
20: #if ! __KERNEL__
21: # error You must be compiling the kernel to use this header
22: #endif
23:
24: /*
25: * Timer queue.
26: */
27: typedef struct tim {
28: struct tim *t_next; /* Pointer to next */
29: struct tim *t_last; /* Pointer to last */
30: long t_lbolt; /* Clock tick at which timeout occurs */
31: int (*t_func)(); /* Function to be called */
32: char *t_farg; /* Argument */
33: #if ! _I386
34: faddr_t t_ldrv; /* Loadable driver function */
35: #endif
36: } TIM;
37:
38: /*
39: * Global variables.
40: */
41: extern TIM * timq[256]; /* Timer queues */
42:
43: #endif /* ! defined (__SYS_TIMEOUT_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.