|
|
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 __KERNEL_TIMEOUT_H__
10: #define __KERNEL_TIMEOUT_H__
11:
12: #include <common/feature.h>
13: #if _I386
14: #include <kernel/reg.h>
15: #else
16: #include <kernel/machine.h>
17: #endif
18: #include <sys/types.h>
19:
20: /*
21: * Timer queue.
22: */
23:
24: typedef struct tim {
25: struct tim *t_next; /* Pointer to next */
26: struct tim *t_last; /* Pointer to last */
27: long t_lbolt; /* Clock tick at which timeout occurs */
28: int (*t_func)(); /* Function to be called */
29: char *t_farg; /* Argument */
30: #if ! _I386
31: faddr_t t_ldrv; /* Loadable driver function */
32: #endif
33: } TIM;
34:
35: /*
36: * Global variables.
37: */
38: extern TIM * timq[256]; /* Timer queues */
39:
40: #endif /* ! defined (__KERNEL_TIMEOUT_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.