I am confused, how to use copy_to_user function. I register a file thru module in /proc say test_proc. now i used copy_from_user function to copy data writtened to the file test_proc and stored in static global char array. now while reading back that file if i use copy_to_user function then it gives me Fault, so i used the snprintf() function to copy data in user buffer. So anybody let me know how to use copy_to_user() function. I used gcc 3.x on RHEL 3, Pentium IV m/c. Regards, Jaydeep. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/