-.\" $OpenBSD: timeout.9,v 1.3 2000/03/23 10:10:20 art Exp $
+.\" $OpenBSD: timeout.9,v 1.4 2000/03/23 11:15:21 art Exp $
.\"
.\" Copyright (c) 2000 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
.Fn "timeout_set" "struct timeout *to" "void (*fn)(void *)" "void *arg"
.Fn "timeout_add" "struct timeout *to" "int ticks"
.Fn "timeout_del" "struct timeout *to"
+.Fn "timeout_pending" "struct timeout *to"
+.Fn "timeout_initialized" "struct timeout *to"
.Sh DESCRIPTION
The finction
.Fn timeout_set
If the timeout has already executed or has never been added
the call will have no effect.
.Pp
+The
+.Fn timeout_pending
+macro can be used to check if a timeout is scheduled to run.
+.Pp
+The
+.Fn timeout_initialized
+macro can be used to check if a timeout has been initialized.
+.Pp
It's the caller responsibility to provide those functions with
the timeout structures. No functions in this API will do memory
allocation. All functions in this API may be called in interrupt