taskqueue(9) funny
Bruce M Simpson
bms at spc.org
Tue Oct 26 10:13:33 PDT 2004
On Tue, Oct 26, 2004 at 12:57:43PM -0500, Sam wrote:
> There is no task_fn type defined by taskqueue.h or _task.h.
> >From a documentation perspective this is ever-so-mildly
> deceiving.
This must mean task_fn_t. How about the attached patch?
BMS
P.S. Love the way mail user agents still escape lines beginning with
'From' even in 2004 because of good old mbox mail format.
-------------- next part --------------
Index: taskqueue.9
===================================================================
RCS file: /home/ncvs/src/share/man/man9/taskqueue.9,v
retrieving revision 1.12
diff -u -p -r1.12 taskqueue.9
--- taskqueue.9 8 Aug 2004 02:37:22 -0000 1.12
+++ taskqueue.9 26 Oct 2004 17:12:56 -0000
@@ -41,7 +41,7 @@
.In sys/queue.h
.In sys/taskqueue.h
.Bd -literal
-typedef void (*task_fn)(void *context, int pending);
+typedef void (*task_fn_t)(void *context, int pending);
typedef void (*taskqueue_enqueue_fn)(void *context);
@@ -49,7 +49,7 @@ struct task {
STAILQ_ENTRY(task) ta_link; /* link for queue */
int ta_pending; /* count times queued */
int ta_priority; /* priority of task in queue */
- task_fn ta_func; /* task handler */
+ task_fn_t ta_func; /* task handler */
void *ta_context; /* argument for handler */
};
.Ed
More information about the freebsd-current
mailing list