| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: callout.9,v 1.23 2009/05/04 11:44:28 ad Exp $ | | 1 | .\" $NetBSD: callout.9,v 1.24 2009/05/04 13:37:57 wiz 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 |
| @@ -149,27 +149,27 @@ and | | | @@ -149,27 +149,27 @@ and |
149 | .Fa arg | | 149 | .Fa arg |
150 | respectively. | | 150 | respectively. |
151 | The callout handle must already be initialized. | | 151 | The callout handle must already be initialized. |
152 | If a callout will always be used with the same function and argument, | | 152 | If a callout will always be used with the same function and argument, |
153 | then | | 153 | then |
154 | .Fn callout_setfunc | | 154 | .Fn callout_setfunc |
155 | used in conjunction with | | 155 | used in conjunction with |
156 | .Fn callout_schedule | | 156 | .Fn callout_schedule |
157 | is slightly more efficient than using | | 157 | is slightly more efficient than using |
158 | .Fn callout_reset . | | 158 | .Fn callout_reset . |
159 | .Pp | | 159 | .Pp |
160 | The | | 160 | The |
161 | .Fn callout_stop | | 161 | .Fn callout_stop |
162 | function requests that the timer associated the callout handle | | 162 | function requests that the timer associated with the callout handle |
163 | .Fa c | | 163 | .Fa c |
164 | be stopped. | | 164 | be stopped. |
165 | The | | 165 | The |
166 | .Em PENDING | | 166 | .Em PENDING |
167 | and | | 167 | and |
168 | .Em EXPIRED | | 168 | .Em EXPIRED |
169 | status for the callout handle is cleared. | | 169 | status for the callout handle is cleared. |
170 | It is safe to call | | 170 | It is safe to call |
171 | .Fn callout_stop | | 171 | .Fn callout_stop |
172 | on a callout handle that is not pending, so long as it is initialized. | | 172 | on a callout handle that is not pending, so long as it is initialized. |
173 | .Fn callout_stop | | 173 | .Fn callout_stop |
174 | will return a non-zero value if the callout was | | 174 | will return a non-zero value if the callout was |
175 | .Em EXPIRED . | | 175 | .Em EXPIRED . |