| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: callout.9,v 1.26 2013/02/03 08:19:58 jdc Exp $ | | 1 | .\" $NetBSD: callout.9,v 1.27 2014/07/27 21:35:07 riastradh Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2000, 2003, 2009 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2000, 2003, 2009 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 |
| @@ -58,27 +58,27 @@ | | | @@ -58,27 +58,27 @@ |
58 | .Fn "callout_setfunc" "callout_t *c" "void (*func)(void *)" "void *arg" | | 58 | .Fn "callout_setfunc" "callout_t *c" "void (*func)(void *)" "void *arg" |
59 | .Ft bool | | 59 | .Ft bool |
60 | .Fn "callout_stop" "callout_t *c" | | 60 | .Fn "callout_stop" "callout_t *c" |
61 | .Ft bool | | 61 | .Ft bool |
62 | .Fn "callout_halt" "callout_t *c" "kmutex_t *interlock" | | 62 | .Fn "callout_halt" "callout_t *c" "kmutex_t *interlock" |
63 | .Ft bool | | 63 | .Ft bool |
64 | .Fn "callout_pending" "callout_t *c" | | 64 | .Fn "callout_pending" "callout_t *c" |
65 | .Ft bool | | 65 | .Ft bool |
66 | .Fn "callout_expired" "callout_t *c" | | 66 | .Fn "callout_expired" "callout_t *c" |
67 | .Ft bool | | 67 | .Ft bool |
68 | .Fn "callout_active" "callout_t *c" | | 68 | .Fn "callout_active" "callout_t *c" |
69 | .Ft bool | | 69 | .Ft bool |
70 | .Fn "callout_invoking" "callout_t *c" | | 70 | .Fn "callout_invoking" "callout_t *c" |
71 | .Ft bool | | 71 | .Ft void |
72 | .Fn "callout_ack" "callout_t *c" | | 72 | .Fn "callout_ack" "callout_t *c" |
73 | .Sh DESCRIPTION | | 73 | .Sh DESCRIPTION |
74 | The | | 74 | The |
75 | .Nm callout | | 75 | .Nm callout |
76 | facility provides a mechanism to execute a function at a given time. | | 76 | facility provides a mechanism to execute a function at a given time. |
77 | The timer is based on the hardclock timer which ticks | | 77 | The timer is based on the hardclock timer which ticks |
78 | .Dv hz | | 78 | .Dv hz |
79 | times per second. | | 79 | times per second. |
80 | The function is called at softclock interrupt level. | | 80 | The function is called at softclock interrupt level. |
81 | .Pp | | 81 | .Pp |
82 | Clients of the | | 82 | Clients of the |
83 | .Nm callout | | 83 | .Nm callout |
84 | facility are responsible for providing pre-allocated | | 84 | facility are responsible for providing pre-allocated |