[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE:



Hi,
   In reponse to your query:
When copying data from kernel to user space
or vice versa pointer and other such mechanisms
wont work becauss the address space itself is
different

I suggest you take a look at the following:

a) Header file <asm/segment.h>
b) memcpy_fromfs(...)
c) memcpy_tofs(...)

     Regards,

     Deepak Chandrashekar
     Integra Microsystems
     Bangalore


-- Original Message --

>Hi,
>
>    I am learning LKMs.  To access the user space
>functions from kernel space, I tried to use get_ds().
>I got an error "undeclared variable".
>
>I included the file "uaccess.h".  I got a lot of
>errors
>from uaccess.h itself.
>I included following files in the same order:
>module.h, kernel.h, segment.h, uaccess.h, types.h,
>fcntl.h
>
> Why am i getting the errors? How to solve this?
> Please help
>
>Gayathri
>
>____________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
>or your free @yahoo.ie address at http://mail.yahoo.ie
>
>---------------------------------------------
>Find out more about this and other Linux India
>mailing lists at http://lists.linux-india.org/
>



________________________________________
Get your free email at www.friendlyemail.com