On Tue, Nov 20, 2001 at 11:27:12AM +0000, Luis Miguel Correia Henriques wrote: > Hi, > > how can I copy a stream of bytes to user space? this user space can be > anywhere in a process space (even code segment...). I tried memcpy but it > gave me "Unable to handle kernel paging request at virtual address ...". > With copy_to_user, it seemed to work but, when I tried to verify if it was > really written, it didn't! Take a look in copy_to_user() to copy to user space and to copy from user space is copy_from_user(). -- Flávio Bruno Leitner http://fly.to/fbl Conectiva Linux http://www.conectiva.com.br/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/