From: Dave Chinner <david@fromorbit.com>
To: Kevin Diggs <kevdig@hypersurf.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Fwd: Corrections please ...]
Date: Tue, 19 Aug 2008 12:41:25 +1000 [thread overview]
Message-ID: <20080819024125.GM19760@disturbed> (raw)
In-Reply-To: <48AA27AF.9070407@hypersurf.com>
On Mon, Aug 18, 2008 at 06:53:51PM -0700, Kevin Diggs wrote:
> Could someone ... anyone take a look at these kernel doc additions?
.....
>
> +/**
> + * complete: - signals a single thread waiting on this completion
> + * @x: holds the state of this particular completion
> + *
> + * This will wake up a single thread waiting on this completion. If
> multiple
Your mailer appears to be wrapping lines.
> + * threads are waiting ???
> + */
> void complete(struct completion *x)
> {
> unsigned long flags;
complete() will only wake one waiting thread. If there are multiple
waiters, then further calls to complete() are required to wake them,
or a single call to complete_all() could be used.
> EXPORT_SYMBOL(wait_for_completion);
>
> +/**
> + * wait_for_completion_timeout: - waits for completion of a task
> (w/timeout)
> + * @x: holds the state of this particular completion
> + * @timeout: timeout value in jiffies
> + *
> + * This waits to be signaled for completion of a specific task. It is NOT
> + * interruptible. But there is a timeout in jiffies.
Doesn't read very well.
"This waits for either a completion of a specific task to be signalled
or for a defined length of time. It is not interruptible."
> +/**
> + * wait_for_completion_interruptible_timeout: - waits for completion
> (w/(to,int
> r))
> + * @x: holds the state of this particular completion
> + * @timeout: timeout value in jiffies
> + *
> + * This waits to be signaled for completion of a specific task. It is
> + * interruptible. And there is a timeout in jiffies.
> + */
Same as for wait_for_completion_timeout().
> +/**
> + * wait_for_completion_killable: - waits for completion of a task
> (killable)
> + * @x: holds the state of this particular completion
> + *
> + * This waits to be signaled for completion of a specific task. It is
> + * killable (???).
> + */
Killable means that a kill signal will interrupt the wait, but not
all signals will. Typically used in places where you want a user
ctrl-c or a kill command to succeed but don't want any other signal
to interrupt the completion.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2008-08-19 2:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 1:53 [Fwd: Corrections please ...] Kevin Diggs
2008-08-19 2:41 ` Dave Chinner [this message]
2008-08-19 8:07 ` Kevin Diggs
2008-08-19 12:03 ` Stefan Richter
2008-08-19 16:15 ` Marcin Slusarz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080819024125.GM19760@disturbed \
--to=david@fromorbit.com \
--cc=kevdig@hypersurf.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.