diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-03-23 11:15:22 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-03-23 11:15:22 +0000 |
commit | 0f46928d05569a917c4c2c3ad7a34d53797737aa (patch) | |
tree | 935919f0acb732629ebfc913120220b0c91acd2d /share | |
parent | 3fb72214e03d02f76ad6c4019cc6732b78968057 (diff) |
Document timeout_pending and timeout_initialized.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/timeout.9 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/share/man/man9/timeout.9 b/share/man/man9/timeout.9 index 8659c0780a3..cd69e6fb968 100644 --- a/share/man/man9/timeout.9 +++ b/share/man/man9/timeout.9 @@ -1,4 +1,4 @@ -.\" $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. @@ -40,6 +40,8 @@ .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 @@ -98,6 +100,14 @@ will cancel the timeout in the argument 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 |