Make it clear that we should use not callout_stop but callout_halt before callout_destroy

This commit is contained in:
ozaki-r 2014-11-20 15:43:52 +00:00
parent e888d0e817
commit 9c95126602

View File

@ -1,4 +1,4 @@
.\" $NetBSD: callout.9,v 1.27 2014/07/27 21:35:07 riastradh Exp $
.\" $NetBSD: callout.9,v 1.28 2014/11/20 15:43:52 ozaki-r Exp $
.\"
.\" Copyright (c) 2000, 2003, 2009 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd February 2, 2013
.Dd November 21, 2014
.Dt CALLOUT 9
.Os
.Sh NAME
@ -116,7 +116,11 @@ should always be called when the callout is no longer required (for instance,
when a device is being detached).
The callout should be stopped before
.Fn callout_destroy
is called.
is called by calling
.Fn callout_halt .
Note that
.Fn callout_stop
shouldn't be used for this purpose.
.Pp
The
.Fn callout_reset