On Fri, 2005-01-28 at 13:40 -0800, Rock Gordon wrote: > Lemme explain my problem a little bit more .... I have > a thread that does exactly similar things in > kernel-mode and user-mode (depending on how you > invoked it; of course, the kernel one is forked using > kernel_thread(), and the user one is from > pthread_create()). The architecture-dependant stuff is > taken care of by extensive use of __KERNEL__ macro > testing. You can than use the same macros for getting to correct copying function. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/