freelanceprogrammers.org Forum Index » C

How to use copy_to_user() function....


View user's profile Post To page top
jaydeepzap Posted: Wed Jan 05, 2005 6:23 am


Joined: 03 Jan 2005

Posts: 2
How to use copy_to_user() function....
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,
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help