xref: /original-bsd/sys/sys/callout.h (revision 4b2c5e10)
1 /*	callout.h	6.1	83/07/29	*/
2 
3 /*
4  * The callout structure is for
5  * a routine arranging
6  * to be called by the clock interrupt
7  * (clock.c) with a specified argument,
8  * in a specified amount of time.
9  * Used, for example, to time tab
10  * delays on typewriters.
11  */
12 
13 struct	callout {
14 	int	c_time;		/* incremental time */
15 	caddr_t	c_arg;		/* argument to routine */
16 	int	(*c_func)();	/* routine */
17 	struct	callout *c_next;
18 };
19 #ifdef KERNEL
20 struct	callout *callfree, *callout, calltodo;
21 int	ncallout;
22 #endif
23