On Thu, 20 Jan 2005 02:34:58 -0800 (PST), maryam karimi <maryam_karimi62@xxxxxxxxx> wrote: > I want to know about accessing a user space variable from a kernel module > thanks in advance > There are a set of functions in kernel to copy data from kernel to user and vice versa. copy_to_user(); copy_from_user(); put_user(); get_user(); if you know the address of the variable, you can use these functions. copy_from_user(); get_user(); You cannot use simple C to access the variable; Regards Manish Regmi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/