Messages in this thread |  | | | Date | Sun, 20 Jan 2008 12:25:25 +0100 (CET) | | From | Jan Engelhardt <> | | Subject | Re: [PATCH 2/6] typesafe: kthread_create and kthread_run | |
On Jan 20 2008 20:48, Rusty Russell wrote:
>+ */
>+#define kthread_create(threadfn, data, namefmt...) ({ \
>+ int (*_threadfn)(typeof(data)) = (threadfn); \
>+ __kthread_create((void *)_threadfn, (data), namefmt); \
>+})
If you have namefmt... you need that varagrs cpp trick. IIRC:
__kthread_create((void *)_threadfn, (data), namefmt, __VA_ARGS__);
|  |