From: Jeff Garzik <jgarzik@pobox.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] generic work queue handling, workqueue-2.5.39-D6
Date: Mon, 30 Sep 2002 15:08:03 -0400 [thread overview]
Message-ID: <3D98A113.8010502@pobox.com> (raw)
In-Reply-To: Pine.LNX.4.44.0209301747560.13521-100000@localhost.localdomain
Ingo Molnar wrote:
> the attached patch (against BK-curr) cleans up the impact of the removal
> of task-queue support. It merges kernel/context.c (keventd) and the old
> task-queue concept into a unified 'work queue' concept. The basic
> primitives are:
>
> extern workqueue_t *create_workqueue(const char *name);
> extern void destroy_workqueue(workqueue_t *wq);
> extern int queue_work(work_t *work, workqueue_t *wq);
> extern void flush_workqueue(workqueue_t *wq);
>
> there is one 'default' workqueue, the events queue, which is analogous to
> the old keventd code, with very similar semantics:
>
> extern int schedule_work(work_t *work);
> extern void flush_scheduled_work(void);
Two things:
* queue_work has its arguments reversed
* you need to add queue_work_delayed
next prev parent reply other threads:[~2002-09-30 19:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-30 16:04 [patch] generic work queue handling, workqueue-2.5.39-D6 Ingo Molnar
2002-09-30 17:45 ` Dipankar Sarma
2002-09-30 18:20 ` Ingo Molnar
2002-09-30 19:08 ` Jeff Garzik [this message]
2002-09-30 19:27 ` Chris Wedgwood
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=3D98A113.8010502@pobox.com \
--to=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=torvalds@transmeta.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox