| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: callout.9,v 1.19 2008/04/30 13:10:58 martin Exp $ | | 1 | .\" $NetBSD: callout.9,v 1.20 2009/01/04 19:32:16 jdc Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2000, 2003 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2000, 2003 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Jason R. Thorpe. | | 7 | .\" by Jason R. Thorpe. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -27,26 +27,27 @@ | | | @@ -27,26 +27,27 @@ |
27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 27 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | .\" POSSIBILITY OF SUCH DAMAGE. | | 28 | .\" POSSIBILITY OF SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .Dd December 29, 2007 | | 30 | .Dd December 29, 2007 |
31 | .Dt CALLOUT 9 | | 31 | .Dt CALLOUT 9 |
32 | .Os | | 32 | .Os |
33 | .Sh NAME | | 33 | .Sh NAME |
34 | .Nm callout_init , | | 34 | .Nm callout_init , |
35 | .Nm callout_destroy , | | 35 | .Nm callout_destroy , |
36 | .Nm callout_reset , | | 36 | .Nm callout_reset , |
37 | .Nm callout_schedule , | | 37 | .Nm callout_schedule , |
38 | .Nm callout_setfunc , | | 38 | .Nm callout_setfunc , |
39 | .Nm callout_stop , | | 39 | .Nm callout_stop , |
| | | 40 | .Nm callout_pending , |
40 | .Nm callout_expired , | | 41 | .Nm callout_expired , |
41 | .Nm callout_invoking , | | 42 | .Nm callout_invoking , |
42 | .Nm callout_ack | | 43 | .Nm callout_ack |
43 | .Nd execute a function after a specified length of time | | 44 | .Nd execute a function after a specified length of time |
44 | .Sh SYNOPSIS | | 45 | .Sh SYNOPSIS |
45 | .In sys/callout.h | | 46 | .In sys/callout.h |
46 | .Ft void | | 47 | .Ft void |
47 | .Fn "callout_init" "callout_t *c" "u_int flags" | | 48 | .Fn "callout_init" "callout_t *c" "u_int flags" |
48 | .Ft void | | 49 | .Ft void |
49 | .Fn "callout_destroy" "callout_t *c" | | 50 | .Fn "callout_destroy" "callout_t *c" |
50 | .Ft void | | 51 | .Ft void |
51 | .Fn "callout_reset" "callout_t *c" "int ticks" \ | | 52 | .Fn "callout_reset" "callout_t *c" "int ticks" \ |
52 | "void (*func)(void *)" "void *arg" | | 53 | "void (*func)(void *)" "void *arg" |