Re: userspace vs. kernelspace address

2005-01-30 Thread Bernd Petrovitsch
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

Re: userspace vs. kernelspace address

2005-01-30 Thread Jan Hudec
On Fri, Jan 28, 2005 at 20:23:55 -0800, Om wrote: > On Fri, Jan 28, 2005 at 01:40:51PM -0800, Rock Gordon wrote: > > Hi everbody, > > > > Thanks for your replies. > > > > However I think my copy_to_user and copy_from_user are > > failing since the kernel-mode thread is copying data > > into

Re: userspace vs. kernelspace address

2005-01-30 Thread Jan Hudec
On Fri, Jan 28, 2005 at 20:23:55 -0800, Om wrote: On Fri, Jan 28, 2005 at 01:40:51PM -0800, Rock Gordon wrote: Hi everbody, Thanks for your replies. However I think my copy_to_user and copy_from_user are failing since the kernel-mode thread is copying data into another process's

Re: userspace vs. kernelspace address

2005-01-28 Thread Om
On Fri, Jan 28, 2005 at 01:40:51PM -0800, Rock Gordon wrote: > Hi everbody, > > Thanks for your replies. > > However I think my copy_to_user and copy_from_user are > failing since the kernel-mode thread is copying data > into another process's address space, and I am not > sure how to do this.

Re: userspace vs. kernelspace address

2005-01-28 Thread Rock Gordon
Hi everbody, Thanks for your replies. 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

Re: userspace vs. kernelspace address

2005-01-28 Thread Rock Gordon
Hi everbody, Thanks for your replies. 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

Re: userspace vs. kernelspace address

2005-01-28 Thread Om
On Fri, Jan 28, 2005 at 01:40:51PM -0800, Rock Gordon wrote: Hi everbody, Thanks for your replies. However I think my copy_to_user and copy_from_user are failing since the kernel-mode thread is copying data into another process's address space, and I am not sure how to do this. Do the