# Re: \[RFC PATCH 02/18\] kthread: Add API for iterant kthreads

- From: Tejun Heo \<hidden\>
- Date: 2015-06-09 06:24:12 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2015/06/4511668
- Thread: https://ratatoskr.run/linux-nfs/2015/06/4510097/t.md

```text
Hello, Petr.

On Fri, Jun 05, 2015 at 05:01:01PM +0200, Petr Mladek wrote:
> +static int kthread_iterant_fn(void *kti_ptr)
> +{
> +	struct kthread_iterant *kti = kti_ptr;
> +	void *data = kti->data;
> +
> +	if (kti->init)
> +		kti->init(data);
> +
> +	do {
> +		if (kti->func)
> +			kti->func(data);

Is supporting kthread_iterant w/o the body function intentional?  If
so, did you have anything specific on mind for it?  I don't think it
matters either way.  Just curious how this came to be.

Thanks.

-- 
tejun
```
