FreeBSD/Linux Kernel Cross Reference
sys/kern/time_out.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1993-1987 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: time_out.h,v $
29 * Revision 2.6 93/11/17 17:32:10 dbg
30 * Moved time_out functions to kern/mach_timer.h. This file
31 * now contains only the compatibility calls for old device
32 * drivers.
33 * [93/04/09 dbg]
34 *
35 * Revision 2.5 91/07/31 17:51:15 dbg
36 * Fix race condition.
37 * [91/07/30 17:08:00 dbg]
38 *
39 * Revision 2.4 91/05/14 16:49:27 mrt
40 * Correcting copyright
41 *
42 * Revision 2.3 91/02/05 17:30:51 mrt
43 * Changed to new Mach copyright
44 * [91/02/01 16:20:31 mrt]
45 *
46 * Revision 2.2 90/11/05 14:32:00 rpd
47 * Changed untimeout to return boolean.
48 * [90/10/29 rpd]
49 *
50 * Revision 2.1 89/08/03 15:57:24 rwd
51 * Created.
52 *
53 * 14-Jun-88 David Golub (dbg) at Carnegie-Mellon University
54 * Created.
55 *
56 */
57
58 #ifndef _KERN_TIME_OUT_H_
59 #define _KERN_TIME_OUT_H_
60
61 #include <mach/boolean.h>
62
63 /*
64 * Anonymous timer requests for device drivers.
65 */
66
67 extern int hz; /* number of 'ticks' per second -
68 compatibility */
69
70 /*
71 * Set a timeout. Partial prototype for 'fcn' is
72 * for the benefit of old device drivers.
73 */
74 extern void timeout(
75 void (*fcn)(/* void * */),
76 void * param,
77 int interval); /* in milliseconds */
78
79 /*
80 * Remove a timeout, returning whether it was still set.
81 */
82 extern boolean_t untimeout(
83 void (*fcn)(/* void * */),
84 void * param);
85
86 #endif /* _KERN_TIME_OUT_H_ */
Cache object: 8e897c207ceede8cf0c2c51f154a961b
|