From 86fd19de7be995cef26fe6e5779b7d1417fd1b40 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Wed, 19 Jan 2005 19:46:35 +0000 Subject: [PATCH] Clarify the description of the callout_active() macro: It is cleared by callout_stop, callout_drain, and callout_deactivate, but is not automatically cleared when a callout returns. --- sys/kern/kern_timeout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index b55589ebf945..d9fe231123d0 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -383,7 +383,9 @@ callout_handle_init(struct callout_handle *handle) * * defines three convenience macros: * - * callout_active() - returns truth if callout has not been serviced + * callout_active() - returns truth if callout has not been stopped, + * drained, or deactivated since the last time the callout was + * reset. * callout_pending() - returns truth if callout is still waiting for timeout * callout_deactivate() - marks the callout as having been serviced */