[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0801201223590.14598@fbirervta.pbzchgretzou.qr>
Date: Sun, 20 Jan 2008 12:25:25 +0100 (CET)
From: Jan Engelhardt <jengelh@...putergmbh.de>
To: Rusty Russell <rusty@...tcorp.com.au>
cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, Jeff Garzik <jeff@...zik.org>,
Tejun Heo <htejun@...il.com>
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__);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists