Timur Tabi wrote:
Is there anything different about copy_to_user() in the 2.6 kernels? I have a driver which works fine in 2.4, but the copy_to_user() function doesn't appear to work when in 2.6. It doesn't return an error code, but my user-space code doesn't see any of the data that was supposed to be copied. The behavior is exactly as if I never called copy_to_user().
Problem solved: an unrelated function was trashing the stack, which (among other things) was corrupting the data I was passing to copy_to_user().
-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/