From 8526221cef29b01d3850ee440eacdaf51546a3e9 Mon Sep 17 00:00:00 2001 From: cperciva Date: Wed, 19 Jan 2005 19:46:35 +0000 Subject: 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(-) (limited to 'sys/kern/kern_timeout.c') diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index b55589e..d9fe231 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 */ -- cgit v1.1