20 Aug 03:27
{NOT a PATCH} Corrections please ...
From: Kevin Diggs <kevdig <at> hypersurf.com>
Subject: {NOT a PATCH} Corrections please ...
Newsgroups: gmane.linux.kernel
Date: 2008-08-20 01:30:11 GMT
Subject: {NOT a PATCH} Corrections please ...
Newsgroups: gmane.linux.kernel
Date: 2008-08-20 01:30:11 GMT
Hi,
It was recommended that I use a completion in a driver I am working on.
While figuring out how to use one, I noticed that there was no kernel
doc block comments. I am trying to add them. I would rather not have to
respin the patch for corrections.
--- include/linux/completion.h.orig 2008-08-13 00:56:52.000000000 -0700
+++ include/linux/completion.h 2008-08-19 17:47:49.000000000 -0700
@@ -10,6 +10,14 @@
#include <linux/wait.h>
+/**
+ * struct completion - structure used to maintain state for a "completion"
+ *
+ * This is the opaque structure used to maintain the state for a
"completion".
+ * See also: complete(), wait_for_completion() (and friends _timeout,
+ * _interruptible, _interruptible_timeout, and _killable),
init_completion(),
+ * and macros DECLARE_COMPLETION() and INIT_COMPLETION().
+ */
struct completion {
unsigned int done;
wait_queue_head_t wait;
@@ -21,6 +29,14 @@
#define COMPLETION_INITIALIZER_ONSTACK(work) \
({ init_completion(&work); work; })
(Continue reading)
RSS Feed