Deleted Added
full compact
timeout.9 (70466) timeout.9 (71883)
1.\" $NetBSD: timeout.9,v 1.2 1996/06/23 22:32:34 pk Exp $
2.\"
3.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Paul Kranenburg.
8.\"

--- 20 unchanged lines hidden (view full) ---

29.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35.\" POSSIBILITY OF SUCH DAMAGE.
36.\"
1.\" $NetBSD: timeout.9,v 1.2 1996/06/23 22:32:34 pk Exp $
2.\"
3.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Paul Kranenburg.
8.\"

--- 20 unchanged lines hidden (view full) ---

29.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35.\" POSSIBILITY OF SUCH DAMAGE.
36.\"
37.\" $FreeBSD: head/share/man/man9/timeout.9 70466 2000-12-29 09:18:45Z ru $
37.\" $FreeBSD: head/share/man/man9/timeout.9 71883 2001-01-31 12:17:45Z ben $
38.\"
39.Dd September 10, 1996
40.Dt TIMEOUT 9
41.Os FreeBSD
42.Sh NAME
43.Nm timeout ,
44.Nm untimeout ,
45.Nm callout_handle_init ,

--- 14 unchanged lines hidden (view full) ---

60.Fn callout_handle_init "struct callout_handle *handle"
61.Pp
62.Bd -literal
63struct callout_handle handle = CALLOUT_HANDLE_INITIALIZER(&handle)
64.Ed
65.Ft void
66.Fn untimeout "timeout_t *func" "void *arg" "struct callout_handle handle"
67.Ft void
38.\"
39.Dd September 10, 1996
40.Dt TIMEOUT 9
41.Os FreeBSD
42.Sh NAME
43.Nm timeout ,
44.Nm untimeout ,
45.Nm callout_handle_init ,

--- 14 unchanged lines hidden (view full) ---

60.Fn callout_handle_init "struct callout_handle *handle"
61.Pp
62.Bd -literal
63struct callout_handle handle = CALLOUT_HANDLE_INITIALIZER(&handle)
64.Ed
65.Ft void
66.Fn untimeout "timeout_t *func" "void *arg" "struct callout_handle handle"
67.Ft void
68.Fn callout_init "struct callout *c"
68.Fn callout_init "struct callout *c" "int mpsafe"
69.Ft void
70.Fn callout_stop "struct callout *c"
71.Ft void
72.Fn callout_reset "struct callout *c" "int ticks" "timeout_t *func" "void *arg"
73.Sh DESCRIPTION
74The function
75.Fn timeout
76schedules a call to the function given by the argument

--- 87 unchanged lines hidden (view full) ---

164.Pp
165The function
166.Fn callout_init
167initializes a callout so it can be passed to
168.Fn callout_stop
169or
170.Fn callout_reset
171without any side effects.
69.Ft void
70.Fn callout_stop "struct callout *c"
71.Ft void
72.Fn callout_reset "struct callout *c" "int ticks" "timeout_t *func" "void *arg"
73.Sh DESCRIPTION
74The function
75.Fn timeout
76schedules a call to the function given by the argument

--- 87 unchanged lines hidden (view full) ---

164.Pp
165The function
166.Fn callout_init
167initializes a callout so it can be passed to
168.Fn callout_stop
169or
170.Fn callout_reset
171without any side effects.
172If the
173.Fa mpsafe
174argument is zero,
175the callout structure is not considered to be
176.Dq multi-processor safe ;
177that is,
178the Giant lock will be acquired before calling the callout function,
179and released when the callout function returns.
172.Pp
173The function
174.Fn callout_stop
175cancels a callout if it is currently pending.
176.Pp
177The function
178.Fn callout_reset
179first calls

--- 27 unchanged lines hidden ---
180.Pp
181The function
182.Fn callout_stop
183cancels a callout if it is currently pending.
184.Pp
185The function
186.Fn callout_reset
187first calls

--- 27 unchanged lines hidden ---