Re: [PATCH] kthread abstraction, take two

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Sat Feb 09 2002 - 18:55:22 EST


Christoph Hellwig wrote:
>
> This is a new version of the ktread abstraction which incorporates
> suggestions by Andi Kleen, Jeff Garzik and Andrew Morton.
>
> The changes are:
>
> - kthread_start now takes a void * for the user-data, so it doesn't
> have to be part of struct kthread.
> - the main method of struct kthread now returns an integers, if it
> is negative, the thread will be stopped.
> - kthread_main no more does the scheduling, it has to be done by
> the mainloop now.

Nice. I like it.

Would you consider converting a few places in the kernel to use kthread,
just as an example to show people what a sample implementation would
look like?

        Jeff

-- 
Jeff Garzik      | "I went through my candy like hot oatmeal
Building 1024    |  through an internally-buttered weasel."
MandrakeSoft     |             - goats.com
-
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 : Fri Feb 15 2002 - 21:00:29 EST