Re: [PATCH] kthread: implement kthread_worker

From: Tejun Heo
Date: Tue Jun 22 2010 - 03:32:58 EST


Hello,

On 06/21/2010 10:33 PM, Randy Dunlap wrote:
> On Sat, 19 Jun 2010 17:53:55 +0200 Tejun Heo wrote:
>
>> include/linux/kthread.h | 63 +++++++++++++++++++++++++
>> kernel/kthread.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++++
>> 2 files changed, 181 insertions(+)
>>
>> Index: work/kernel/kthread.c
>> ===================================================================
>> --- work.orig/kernel/kthread.c
>> +++ work/kernel/kthread.c
>
>> @@ -247,3 +249,119 @@ int kthreadd(void *unused)
>>
>> return 0;
>> }
>> +
>> +/**
>> + * kthread_worker_fn - kthread function to process kthread_worker
>> + * @data: pointer to initialized kthread_worker
>
> s/data/worker_ptr/
>
>> + *
>> + * This function can be used as @threadfn to kthread_create() or
>> + * kthread_run() with @data argument pointing to an initialized
>
> ditto.

Yeah, that would be a much better idea. Updated.

Thanks.

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