Messages in this thread | | | Date | Sun, 29 Sep 2002 15:48:17 -0400 | From | Jeff Garzik <> | Subject | Re: [patch] smptimers, old BH removal, tq-cleanup, 2.5.39 |
| |
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/
| |