Re: [patch] smptimers, old BH removal, tq-cleanup, 2.5.39

From: Jeff Garzik (jgarzik@pobox.com)
Date: Sun Sep 29 2002 - 14:48:17 EST


Ingo Molnar wrote:
> yes, wrt. keventd i was thinking along the same line - but in a different,
> perhaps cleaner and simpler direction.
>
> i'd like to introduce the following interfaces:
>
> - create_work_queue(wq, handler_fn)

what is handler_fn for, if you pass work_fn later?

> - destroy_work_queue(wq)
>
> - queue_work(wq, work_fn, work_data)

queue_work_delayed(wq, work_fn, work_data, delay) would be nice too

> - flush_work_queue(wq)
>
> this is an extension of the keventd concept. A work queue is a simplified
> interface to create a kernel thread that gets work queued from IRQ and
> process contexts. No more, no less.

Your proposal sounds good to me...

        Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:42 EST