BSD 4_3_Tahoe release
[unix-history] / usr / src / sys / h / callout.h
CommitLineData
da7c5cc6 1/*
1810611d 2 * Copyright (c) 1982, 1986 Regents of the University of California.
da7c5cc6
KM
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
95f51977 6 * @(#)callout.h 7.1 (Berkeley) 6/4/86
da7c5cc6 7 */
88d86bda
BJ
8
9/*
10 * The callout structure is for
11 * a routine arranging
12 * to be called by the clock interrupt
13 * (clock.c) with a specified argument,
14 * in a specified amount of time.
15 * Used, for example, to time tab
16 * delays on typewriters.
17 */
18
8cf71f8a 19struct callout {
88d86bda
BJ
20 int c_time; /* incremental time */
21 caddr_t c_arg; /* argument to routine */
22 int (*c_func)(); /* routine */
8cf71f8a 23 struct callout *c_next;
88d86bda 24};
663e1a50 25#ifdef KERNEL
8cf71f8a 26struct callout *callfree, *callout, calltodo;
a0eab615 27int ncallout;
663e1a50 28#endif